Forums

[resolved] Widgets ul wrapper ID (5 posts)

  1. JChamb
    Member
    Posted 2 years ago #

    I've been searching around trying to find a way to change the id of the "ul" that gets wrapped around your widgets. Maybe I'm searching for the wrong thing but I can't find it anywhere. The default is of course<ul id="sidebar-right"> I would like to change it to say something like <ul id="widget-block">

    Thanks for the help,

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try looking in your theme's functions.php file.

  3. JChamb
    Member
    Posted 2 years ago #

    I created the theme. This is what I have for my register side bars function in my functions.php

    register_sidebar(Array(
    		'name' => 'Home Sidebar',
    		'before_title' => '<h3 class="widgettitle">',
    		'after_title' => '</h3>',
    		'before_widget' => '<div class="widget %2$s">',
    		'after_widget' => '</div>'
    	));

    then in the actual side bar `<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(6) ) : else : ?>
    <?php endif; ?>`

    that cause's the output of the <ul id="sidebar-right"> before all of my widgets.

    This isn't really a major issue I'm just really trying to keep my markup and clean and tidy and am curious if it's possible this is my first time really doing any full development with wordpress.

    Thanks for any help.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    The ul markup will be in your sidebar file.

  5. JChamb
    Member
    Posted 2 years ago #

    Wow... thanks I feel like an idiot.... I completely missed the ul's blantly in front of my face. 9 hours of staring at a computer screen will do that I suppose.

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic