Results 1 to 3 of 3

Thread: Remove "pipe" after last menu item (wordpress)

  1. #1
    Join Date
    Jul 2008
    Posts
    138
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default Remove "pipe" after last menu item (wordpress)

    This could be posted in a number of thread topics such as html, css, php but I have the following code to dynamically form the "top-left-menu" menu in wordpress.

    <div id="top-left-menu">
    <ul id="menu-top-left" class="menu"><li id="menu-item-1221" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1221"><a href="http://belttech1.server275.com/site-map-2/">Site Map </a></li>
    <li id="menu-item-1222" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1222"><a href="http://server.com/privacy-policy/"> Privacy Policy</a></li>
    </ul>
    </div>


    I've tried several things to get the "pipe" removed after the last menu item "Privacy Policy", but I can't get anything to work. (see below)
    Click image for larger version. 

Name:	remove_pipe.jpg 
Views:	234 
Size:	19.5 KB 
ID:	5467

    The pipes are being added dynamically with php, but I haven't been able to locate where the code is. I also tried css menu-item-1222 content after none and couldn't get it to work.

    Anyone have any ideas? Thank you
    Last edited by ?foru; 05-29-2014 at 07:34 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Try #menu-item-1347 { background:none } in your stylesheet

    The id in your sample posted code is #menu-item-1222, but when I visit your site via one of the URLs in the href's, its #menu-item-1347
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. The Following User Says Thank You to Beverleyh For This Useful Post:

    ?foru (05-29-2014)

  4. #3
    Join Date
    Jul 2008
    Posts
    138
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default

    The ID changed, I believe because I deleted the menu items after I posted this, and re-built them to see if it would work..which it didn't. I just tried your snippet and it worked, thank you! I think I had about everything but that

Similar Threads

  1. "undefined" showing in top item of Pop-it menu
    By maureenie in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-27-2011, 11:26 PM
  2. Resolved jQuery Multi Level CSS Menu #2 drop down behind "select" item on page
    By SuperCrispy71 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-21-2010, 11:45 AM
  3. Apple Accordion menu item "flashing" on close
    By jrattinger in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 09-04-2009, 01:39 AM
  4. Replies: 2
    Last Post: 11-19-2007, 07:37 PM
  5. Replies: 4
    Last Post: 05-10-2007, 12:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •