• Hi,

    I’ve disabled the post/page navigation like this:

    }
    .comment-navigation .nav-previous,
    .posts-navigation .nav-previous,
    .post-navigation .nav-previous {
    	float: left;
    	width: 50%;
    display:none;
    }
    .comment-navigation .nav-next,
    .posts-navigation .nav-next,
    .post-navigation .nav-next {
    	float: right;
    	text-align: right;
    	width: 50%;
    display:none;
    }

    However, this disables it everywhere, and I just want to disable it on my pages, not on my posts. I only have one category for posts, so perhaps there’s someting I can add or change to display the navigation within that category only? Or on posts in general while not on pages?

    Very grateful for help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • what theme are you using?

    if the theme has body_class() integrated in its code, you will have selective CSS classes like .page and .single to selectively hide the navigation links.

    Thread Starter Sagano

    (@sagano)

    I’m using Sydney ??

    Thread Starter Sagano

    (@sagano)

    I doesn’t seem like it has body_class () integrated… But it doesn’t seem that difficult to add, I’ll give it a try ?? Thank you!

    Thread Starter Sagano

    (@sagano)

    OK, it wasn’t as easy as I thought. Turns out body_class() is integrated in my theme, but I don’t understand how to use the classes, where to insert them.

    I found a class called ‘archive category category-slug’, which seems relevant since I only want to display the navigation on posts within a certain category, but where should I put it? Should it be in combination with the html I pasted above, or somewhere else?

    I’m very new to all this, excuse my confusion.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How show post/page navigation on specific pages/posts only?’ is closed to new replies.