WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Widget in Own <li>? (2 posts)

  1. kennethwatt
    Member
    Posted 4 years ago #

    Hi guys
    I'm currently developing this theme for my blog:
    http://www.technofinger.com/?preview_theme=zinefinger
    And the live version is at:
    http://www.technofinger.com/

    At the end of each widget, there is an extra line. The CSS code shows that there should be an border below each

  2. . It appears as if each widget is in its own
  3. , but I don't want a border below each widget...

    CSS:

    #sidebar .recentcomments a { border: none; }
    #sidebar ul li, { display: block; padding: 3px; font: 13px Arial, Helvetica, "Trebuchet MS", Verdana, sans-serif; color:#878787; border-bottom: 1px solid #878787; width: 288px;}
    #sidebar ul li a { color: #878787; text-decoration: none; }
    #sidebar ul li a:hover { color: #00A1F5; text-decoration: none; }

    How can I resolve it?

    Thanks in advance,
    Kenneth

  • kennethwatt
    Member
    Posted 4 years ago #

    Resolved before reply.
    For reference to people looking for answers to same question:

    Turns out that WP defaults to putting some code before the widget, if nothing is specified in the theme's functions.php file.
    Just changed it to:

    register_sidebar(array('name'=>'Sidebar',
    'before_widget' => '',
    'after_widget' => '',
    ));
  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags