Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #2104


    I would like to add a new widget area. (Recent Posts on the Main page.)

    I added this to widgets.php :


    ‘name’ => ‘Frontpage’,

    ‘before_widget’ => ‘<div id=”%1$s” class=”box_small box widget %2$s”>’,

    ‘after_widget’ => ‘</div>’,

    ‘before_title’ => ‘<h3 class=”widgettitle”>’,

    ‘after_title’ => ‘</h3>’,


    and this to sidebar.php

    if ($k_option == ‘frontpage’ && dynamic_sidebar(‘Frontpage Sidebar’) ) : $default_sidebar = false; endif;

    Nothing happens. I can’t even see the new widget area in Appereance -Widgets.

    Can anybody help me out ?

    Thank you.



    You’ve named the widget Frontpage when registering it and Frontpage Sidebar when calling it so it won’t work…

    Double check that the widgets.php file online has this extra widget code – if it’s not showing up in WP admin on the widgets page, it’s not registered with WP to add the extra area.

    Update the sidebar.php code to:

    if ($k_option['showSidebar'] == 'frontpage' && dynamic_sidebar('Frontpage') ) : $default_sidebar = false; endif;




    sorry about that :)

    On my MainPage I would like to create two lists : Recent Works and Recent Post.

    I’m using a static layout for the MainPage (“Why Habitat ” for now).

    Recent Works should be displayed in 3 columns (just images from the portfolio) and Recent Posts in the 4th column.

    So, I created this new widget area “Frontpage”. But I can’t find out how to put it on my MainPage.

    Thank you for your support,




    You should be able to simply add the dynamic sidebar code in index.php to add the widgetized area to the homepage:

    <?php dynamic_sidebar(‘Frontpage’); ?>




    thank you. I added in template_fullwitdh.php. It works !!!


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

The topic ‘New widget area’ is closed to new replies.