• Okay, so I cannot wrap my head around this one… yet:

    In my site’s ( https://bit.ly/28Wwtpc ) main navigation menu I have a link called News that directs to the news posts category, however I also have a blog posts section on the site that only displays blog posts ( excluding news posts category ). These are the only 2 categories of posts being utilized for this project. I setup the News link to main menu to go to the news post category However when I want to go the Blog category posts i lose the active state for the News link in the main navigation.

    What i am trying to achieve here, without redirects if possible, is the ability for the user to click the News link in the main nav and go to a page that shows only news posts. When a user is on this page there is a sidebar nav which includes links to news and blog post category pages. I want the News link in the main nav to keep it’s active state even when the user navigates to the blog posts category page.

    Things I have tried:
    1. make blog post category a child to the news category – this is a no-go because then on the news page ( where the user goes when the News link is clicked on the main nav ) will also show blog posts.

    2. place both news and blog post categories under a news and press category – also a no-go because when the user clicks the News link in the main navigation they will be redirected to a page that is like home.php that displays both news and blog posts, perhaps this could work with a redirect on the page the places the user a newspress/category/news/ but I am trying to work this out without using redirects

    extra info: So far I have not actually made either a News or Blog pages, instead I used Post Category menu items for the main nav.
    – trying to avoid using a redirect
    – also trying to see if this can be achieved without additional or modified theme template files

Viewing 1 replies (of 1 total)
  • Hi

    So as I understand this you want the ‘News’ link to always keep it’s active state even when the user is on a different page (ie. blog).

    Can you explain why you want to do this?

    If I’m understanding you correctly the easiest way to achieve this is probably just to add a custom class to the link and style it in the css.

Viewing 1 replies (of 1 total)
  • The topic ‘acheiving page heirarchy using post categories’ is closed to new replies.