WordPress.org

Support

Support » Themes and Templates » [Resolved] Highlight of Current Page Not Working In Firefox.

[Resolved] Highlight of Current Page Not Working In Firefox.

  • So I figured out how to highlight the current page in my WP theme menu, and I was happy.. Until I realized it only works in Chrome and not in Firefox.

    Here is the CSS:

    #access li.current_page_item a { background-color:#f2f2f2; }

    Works like a charm in Chrome, but on Firefox doesn’t show up at all. Any suggestions?

    Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    No way to help with something like this without seeing the page. Have you validated the page for coding errors?

    http://codex.wordpress.org/Validating_a_Website

    Browser inconsistencies are often due to invalid code…

    I did, and although its not perfect I don’t see anything that could be messing with the above code.. For this feature, I have not coded anything except “#access li.current_page_item a { background-color:#f2f2f2; }” in the css. This works great in Chrome, but not at all in firefox.

    IF u want to see the site its here

    TO make sure its not a coding error problem as you suggest, I will try installing a wordpress theme from scratch and adding this feature to twentydeleven theme and see if I have the same problem.

    Thank you.

    OK so I just fixed it.. And oddly enough, I did it by taking the code that I had in the custom styles.css section.. And pasting in the custom CSS section under “Theme Options”..

    I have no clue why the same piece of code would all of a sudden work by being placed into a different section, but I am just happy to have found a solution..

    WPyogi

    @wpyogi

    Forum Moderator

    Excellent!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Highlight of Current Page Not Working In Firefox.’ is closed to new replies.
Skip to toolbar