Copyblogger 1.0 - underlining page links in nav_menu (6 posts)

  1. doubleminus
    Posted 6 years ago #

    I'm using the Copyblogger 1.0 theme (http://www.copyblogger.com/the-copyblogger-theme-for-wordpress/) and have added a few custom pages. I also added links to them in the top nav_menu portion of the header.

    The links included by default feature underlining when at that page. (So when at the home page the "Home" link at the top is underlined. When as the Disclaimer page the, the "Disclaimer" link at the top is underlined.)

    So the question is: how do I get the links to the new, custom pages I've created to be underlined when a user is visiting those pages?



  2. esmi
    Forum Moderator
    Posted 6 years ago #

    If you haven't used wp_list_pages to generate the extra links, it's going to be extremely difficult.

    If you have used wp_list_pages, try styling on .current_page_item.

  3. doubleminus
    Posted 6 years ago #

    Unfortunately I am unable to get wp_list_pages working.

    I tried copying some of the examples directly into the nav_menu.php file but always end up with errors.

    One example that does not work:

      <?php wp_list_pages('sort_column=menu_order'); ?>
  4. lelandf
    Posted 6 years ago #

    What do you mean by "custom pages"? You mean pages that aren't inside your actual WordPress site? What errors are you getting with wp_list_pages?

  5. doubleminus
    Posted 6 years ago #

    I mean pages that I've added and were not part of the theme by default.

    The error:
    Parse error: syntax error, unexpected '&'

  6. doubleminus
    Posted 6 years ago #

    Oof - duh. Got rid of the space in there and it's working.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.