Hi
i chose a static page as my home page and cannot get to have the sidebar set.
how can i get it done?
a lot of thanks
Eitan
Hoempage as static page - sidebar issues
8 posts from 3 voices-
Posted 2 years ago #
-
Hey,
You'd need to add a separate sidebar area for the homepage if you choose to use a static homepage - see this post for instructions -> http://www.kriesi.at/support/topic/sidebar-edit-help
Cheers,
JamesPosted 2 years ago # -
Thank you for your prompt answer
i added the code in both files. the code for the functions.php gave me an error message and i noticed that in the line
'name' => Blog Pages Sidebar,
didnt have the quotation marks ' ', so i added it and this time got no error message but nothing really changed - no extra sidebar area was added.
my question - how would this fix relate to the homepage - i didnt find any refernce in the code suggested (i am not a programmer but can understand basic function) - even when i get the new sidebar area - how would it be related to the homepage?many thanks
eitanPosted 2 years ago # -
The code needs slight modification to work on the homepage, sorry I missed the quotation marks around the:
name' => Blog Pages Sidebar,code, it should look like this:
'name' => 'Blog Pages Sidebar',
I'd also change the Blog Pages Sidebar to Homepage Sidebar so you know what is means in future.
You need to adjust the conditional code to get the widgetized area to show its widgets on the homepage - you can use this code:
<?php if (function_exists('dynamic_sidebar') && is_home() && dynamic_sidebar('Homepage Sidebar') ) : endif; ?>Posted 2 years ago # -
hi
i added the code in function.php and got the new widgetized area appear in my dashboard.
then i added the other line in sidebar.php and it makes absolutly no reaction. i made sure that all the names are spelled right - Homepage Sidebar etc. but nothing
could you think of a solution for that?thanks
EitanPosted 2 years ago # -
hi again
i solved the problem.
i changed the syntax to
<?php if (function_exists('dynamic_sidebar') && is_home() || !dynamic_sidebar('Homepage Sidebar') ) : endif; ?>
and now it works
thank you very much for your help
eitanPosted 2 years ago # -
Hi!
Awesome stuff - let me know if you have any other questions!
Regards,
JamesPosted 2 years ago # -
I have done the stuff here and cant get it to work with either code:
<?php if (function_exists('dynamic_sidebar') && is_home() && dynamic_sidebar('Homepage Sidebar') ) : endif; ?>
or
<?php if (function_exists('dynamic_sidebar') && is_home() || !dynamic_sidebar('Homepage Sidebar') ) : endif; ?>
I am trying this on a static page, using an edited index.php
Posted 2 years ago #
Reply
You must log in to post.














