WordPress.org

Forums

Sticky Nav Align with WP Admin Menu? (2 posts)

  1. ithacaindy
    Member
    Posted 1 year ago #

    I have a sticky nav that I want to stay at the top of visitor's screens. However, If I position it using margin-top so that I as admin can see the sticky nav *and* the wp admin bar, it appears lower for non-logged-in users.

    How do I position the sticky nav so that it appears at the top of my browser window, no matter if the wp admin menu is or isn't there?

    Thanks.

  2. photocurio
    Member
    Posted 1 year ago #

    You can use the .admin-bar body class.

Topic Closed

This topic has been closed to new replies.

About this Topic