Forums

CSS Classes (optional) not outputting to source (3 posts)

  1. ivanskigib
    Member
    Posted 1 year ago #

    I am trying to set a different CSS class to each of my menu items but for some reason it is not outputting to source. I am using a paid theme (Jigsaw) but I have switched to the basic TwentyTen theme and again I cannot see any output of this optional CSS class on the menu.

    In the header.php of my theme I find the following code

    wp_nav_menu(array(
    'theme_location' => 'primary_navigation',
    'walker' => new roots_nav_walker(),
    'menu_id' => 'topmenu',
    'menu_class' => 'sf-menu'
    ));

    but I can't find what is wrong. In the advanced screen options the XFN gets passed onto the anchor tag, but I can't understand why the optional CSS isn't passed on to the list element. Since it is not working the basic WordPress theme either I guess i'ts not just an issue with the theme I am using either? Can someone please help? Has anyone else found the same problem?

  2. KrashKartMedia
    Member
    Posted 1 year ago #

    get with the paid theme author and ask them. they can solve this for you.

  3. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    Let's stick with Twenty Eleven, just to rule out any Theme-specific issues.

    First question: how are you applying the custom CSS classes to your list items?

Topic Closed

This topic has been closed to new replies.

About this Topic