WordPress.org

Forums

[resolved] Nav/top menu ID for use in CSS file (6 posts)

  1. Shr.Khr
    Member
    Posted 2 years ago #

    Hi
    below is the markup for my nav-menu items as seen through Firebug.
    So, what is the ID for my menu items that I can reference/use in my CSS file?

    <div class="nav-menu">
     <ul>
      <li class="current_page_item">
      <li class="page_item page-item-2">
      <li class="page_item page-item-341">
      <li class="page_item page-item-353">
      <li class="page_item page-item-357">
      <li class="page_item page-item-361">
     </ul>
    </div>

    Thanks in advance for any help.

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    It's right there: "page-item-xxx" . Depending on what the rest of your CSS is and what you are trying to do, something like this:

    li.page-item-XXX {
       styles;
    }
  3. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Didn't notice your other thread before posting the above, but if this is the same question as this one:
    http://wordpress.org/support/topic/font-size-changed-to-0-to-hide-main-navigation-will-it-affect-seo?replies=7

    Please do not create duplicate threads on these forums.

  4. Shr.Khr
    Member
    Posted 2 years ago #

    Certainly don't want to create duplicate threads; just seemed to me like we are dealing with slightly different issues.

  5. Andrew
    Forum moderator
    Posted 2 years ago #

    Have you resolved this thread's issue?

  6. Shr.Khr
    Member
    Posted 2 years ago #

    Thanks all, this issue is resolved!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags