Tips on creating a new widget area in the theme cover WP 1.6.5?

Viewing 3 posts - 1 through 3 (of 3 total)
  • #1941
    dinner123
    Participant

    I’m a nub and it seems really complicated to do, so I would appreciate any tips.

    #1942
    Daniel Tara
    Keymaster

    The widget areas are declared in functions.php with the function [code]register_sidebar[/code] like this:

    register_sidebar( array(
        'name' => 'Sidebar Name',
        'before_widget' => '<div id="%1$s" class="topitem widget %2$s">',
        'after_widget' => '</div><!-- /topitem -->',
        'before_title' => '<h3>',
        'after_title' => '</h3>'
    ) );

    Then you can call then where you want them to appear, with the function dynamic_sidebar and the sidebar’s index as an argument:

    dynamic_sidebar(7)
    #1943
    dinner123
    Participant

    Okay thanks, that clears it up. But, I had actually already fixed the problem … miraculously. I have no idea what I did, but I as I was messing with it, I prayed, and it just … happened. Exactly like I wanted it. I’m not joking.

    So, thank God, and thank you also …

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

Tagged: ,

You must be logged in to reply to this topic.