• Resolved mcrubbin

    (@mcrubbin)


    I usually build sites on joomla, but a customer wanted a wordpress based one soo here I am trying to build one. and I’m stuck.

    NadiaAndDavid.com

    I’m trying to add menu separators, here’s the code I have for the menu in my template:

    <li <?php if(is_home()) echo 'class="current_page_item"'; ?>><a href="<?php echo get_option('home'); ?>/" >Home</a></li>
    <li class="separator">&nbsp;</li>
    <?php wp_list_pages('title_li=&parent=0&') ;?>

    How can I add a menu separator after every menu item (except the last)?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter mcrubbin

    (@mcrubbin)

    Good idea. Thanks!

    Based on your comments, I ended up adding a custom “#” link with label “|”, then adding this to the css:

    a[href="#"],a[href="#"]:hover,a[href="#"]:active,a[href="#"]:visited {
    	cursor: default;
    }

    (and whatever more rules you need, most probably a background to remove the hover effect)

Viewing 2 replies - 16 through 17 (of 17 total)

The topic ‘Menu separators’ is closed to new replies.