WordPress.org

Making WordPress.org

Opened 2 years ago

Closed 2 years ago

#2283 closed task (fixed)

Keep "Handbook" highlighted in navigation when on handbook pages

Reported by: samuelsidler Owned by: coffee2code
Milestone: Priority: low
Component: Handbooks Keywords:
Cc:

Description

Right now, when you go to /handbook/ on a make site, the handbook item is highlighted ("active") in the subnav. But, if you go to /handbook/something/, it's no longer highlighted. We should keep it highlighted ("active") regardless of where you are in the handbook.

Change History (3)

#1 @samuelsidler
2 years ago

I think @coffee2code was looking at this.

#2 @coffee2code
2 years ago

  • Owner set to coffee2code
  • Status changed from new to accepted

#3 @coffee2code
2 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 4788:

Handbook plugin: Highlights a menu link to the handbook home page when on any constituent handbook page.

Assuming the handbook page isn't already directly linked in the menu, preference is given to highlight a link to the front page of the current handbook. Barring the presence of such a link, it will check to see if there is a link to a 'handbook' or 'handbooks' page, which could be the case for multi-handbook sites.

Fixes #2283.

Note: See TracTickets for help on using tickets.