Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kubegusa

    (@kubegusa)

    My php code looks like this:

    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘link_after’ => ‘<span class=”my-span”>|</span>’ ) ); ?>

    I’ve tried all other options that I could find using CSS to define this, but I always got pipes underneath the navigation menu. Couldn’t figure out how to make this work using CSS.

    In changing this php code, I’m still looking to add spaces between the menu items and the pipes, and how to remove the last pipe.

    I did quite some reading online about this, and it seems to be a tricky one for many. Please help!

    Thread Starter kubegusa

    (@kubegusa)

    Basically, I’m thinking.. if I can add a character using PHP, I should be able to add a space, using PHP too… but how oh how…

    that would solve my 1st problem… would still need to figure out how to remove the last pipe

    anyone?

    Thread Starter kubegusa

    (@kubegusa)

    When I add   to the PHP code
    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘link_after’ => ‘<span class=”my-span”>nbsp|nbsp</span>’ ) ); ?>

    It again, gives me the spaces but also additional pipes below the navigation menu.
    Big sigh.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove pipe after last navigation menu item’ is closed to new replies.