WordPress.org

Ready to get started?Download WordPress

Forums

List Pages Shortcode
adding a separator and highlight Current Page (2 posts)

  1. sphero
    Member
    Posted 1 year ago #

    Hi, just found your plugin and manage to make it work.

    But i have two questions

    - How can i add a separator between each link like:
    menu1 | menu2 | menu3

    i want to display the separator "|" between each menu

    - How can i highlight the Current Page

    for css i think this should work
    #menupage li.current_page_item a, { text-decoration:none; color:#fff; background:#000;}

    but i suppose some php hack is needed?

    Thanks for any help

    Regards

    http://wordpress.org/extend/plugins/list-pages-shortcode/

  2. Ben Huson
    Member
    Plugin Author

    Posted 9 months ago #

    1. You could use the 'link_before' or 'link_after' to add content before/after the links.

    2. Current navigation items have the classes 'current_page_item', 'current_page_ancestor' and 'current_page_parent'. So you can style:

    .list-pages li.current_page_item a, { text-decoration:none; color:#fff; background:#000;}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic