WordPress.org

Ready to get started?Download WordPress

Forums

Disabling navigation bar on certain pages (4 posts)

  1. SIXteen96
    Member
    Posted 5 months ago #

    How can I disable/hide my navigation bar on the Home page but have it display on all other pages?

  2. SIXteen96
    Member
    Posted 5 months ago #

    I have created some CSS to hide the navigation bar throughout the whole website.

    #header #navigation ul.nav {
    display: none;
    }

    How can I make this CSS work on the page with an ID of 2193 only?

  3. martcol
    Member
    Posted 5 months ago #

    view the source of your page in the browser and see if you can identify any unique classes on the body element. Use that in your selector.

    It might be:

    body.page-id-2193 #header #navigation ul.nav {
    display: none;
    }

    This might be theme dependent.

  4. alchymyth
    The Sweeper & Moderator
    Posted 5 months ago #

Reply

You must log in to post.

About this Topic

Tags

No tags yet.