Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #626


    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




    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 ->




    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



    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; ?>



    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?




    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




    Awesome stuff – let me know if you have any other questions!




    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; ?>


    <?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

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Hoempage as static page – sidebar issues’ is closed to new replies.