Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End how to get rid of a list item that seems to be built into the Starkers theme

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #36688
    SandyF
    Member

    hello all,

    I am working on my first WP site – using the Starkers theme – and have run into a problem I hope someone here can help with. I’m stumped.

    Here’s my test page:
    http://clinicdacandassociates.dreamhosters.com/dentists/

    the side menu has a

    Team

    which is, for some reason I can’t figure out, inside a list item.

    I have edited down sidebar.php – there is no list stuff there. Where is this list item coming from? What should I be looking at?

    Here is sidebar.php as it is now:


    /**
    * The Sidebar containing the primary and secondary widget areas.
    *
    * @package WordPress
    * @subpackage Starkers
    * @since Starkers 3.0
    */
    ?>

    /* When we call the dynamic_sidebar() function, it'll spit out
    * the widgets for that widget area. If it instead returns false,
    * then the sidebar simply doesn't exist, so we'll hard-code in
    * some default sidebar stuff just in case.
    */
    if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>

    So, thanks in advanced for your help.

    Sandy

    #96845
    TheDoc
    Member

    That’s how WordPress renders the widgets as seen here: http://codex.wordpress.org/Function_Reference/dynamic_sidebar

    You can edit how the widget renders by editing your functions.php using the arguments found here: http://codex.wordpress.org/Function_Reference/register_sidebar

    #96896
    monk18
    Member

    I am not sure what the problem is. I understand you’d prefer the

    tag not to be in a list, but is there a specific reason why? I believe the reason why WordPress is set up like that is so that you’ll have more control over the code elements. You can use css to style your list elements any way you’d like.

    #107853
    SandyF
    Member

    hey TheDoc,

    I have opened functions.php and now have all the widgets set to

    'before_title' => '

    ',
    'after_title' => '

    ',

    but somehow that list item is still making its way in … what am I missing? Where do I find this thing?

    thanks! Sandy
    ___

    monk18,
    The problem here is not how this looks – I’ve got that list item styled so it doesn’t show.
    There are two problems –

    1. Anyone using a screen reader (a blind or low-vision user) is going to HEAR the list item and I don’t want to fill the page with miscellaneous cruft for them to work through.

    2. The page doesn’t validate with a free-floating list item in it.

    thanks, Sandy

    #107857
    TheDoc
    Member

    Hi Sandy – to make sure your changes to functions.php have been made, try changing the class title to ‘fun-test’ and making sure that it changes on the website.

    Also, it looks like you need to be using the before_widget and after_widget to target the list items themselves. http://codex.wordpress.org/Function_Reference/register_sidebar

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.