Support

Widget Problem in "Ice" WP theme (2 posts)

  1. rss bcripps

    new member


    rss Posted 3 years ago
    #

    Hello Milo.
    I love your themes!
    I am using the "ice" theme for our site, but am having problems when I add a widget to the sidebar.
    If you go to the site, http://www.thecripps.net/ben, you will see that in all of the widgets I've added, the items are indented. The original widgets (Archives, Blogroll) didn't have this problem - only when I add a widget.
    I've tried tweeking different lines of the style.css, but haven't found the trick yet.
    Can you help me? I don't want the items indented nearly so much.
    Thank you,
    Ben

  2. rss milo

    moderator


    rss Posted 3 years ago
    #

    Apparently the functions file adds another ul in front of the widget area,
    to solve this you have two ways: either via CSS or via functions file.

    CSS, add this to your stylesheet at very bottom:

    #sidebar ul{list-style:none;margin:5px 0;padding:0;border:0;}
    #sidebar li{margin:0;padding:3px 0;background:url(images/cat.gif) no-repeat right center;}
    #sidebar li a,#sidebar li a:visited{color:#333;text-decoration:none;}
    #sidebar li a:hover{color:#ccc;text-decoration:none;}
    #sidebar ul ul{list-style:none;margin:5px 0;padding:0;border:0;}

    functions.php file

    look for this line in the functions file:

    if ( function_exists('register_sidebars') )
    register_sidebars(2, array(
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</ul ></div>',
    'before_title' => '<h2>',
    'after_title' => '</h2><ul >',

    and replace it with this

    if ( function_exists('register_sidebars') )
    register_sidebars(2, array(
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2>',
    'after_title' => '</h2>',

    however it's better to start with the CSS method.

Reply

You must log in to post.

Design by milo

Milo designs web sites that strike the perfect balance between professional high-class graphics, functionality, usability, user experience, and high performance.