Bottom bar for widgets (3 posts)

  1. bear007
    Posted 6 years ago #


    I would like to do something like this with my blog: I've in Layout > Widgets one sidebar for my widgets. I would like to add second bar that will be the bottom bar (at the bottom of my blog).

    Could you please tell me how to do something like this? I would like to be able to put widgets on the bottom of myblog. If it's not possible could you tell me what command to use in theme files to put a widget (for example something like function show_widget(id_of_widget)?

    kind regards,

  2. blogsdna
    Posted 6 years ago #

    you need to add following function in your function.php
    between starting and closing php tags

    if ( function_exists('register_sidebar') )
    		'name' => 'bottom',
            'before_widget' => '<ul>',
            'after_widget' => '</li></ul>',
            'before_title' => '<li><h2>',
            'after_title' => '</h2></li><li>',

    change before and after widget/title to match to your theme

    now edit your footer.php file to include widget support

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('bottom') ) : ?><?php endif; ?>

  3. bear007
    Posted 6 years ago #

    Thank you blogsdna very much.

Topic Closed

This topic has been closed to new replies.

About this Topic