Indexhibit

Login:

Created by:
Daniel Eatock &
Jeffery Vaska

Built with Indexhibit

Maintain a highlight on a menu item when a page is visited

 

Indexhibit version: 2.0
Thread is resolved.

wfergs
UNITED STATES
1 year(s) ago
Permalink Post

How do I maintain a highlight on a menu item when a page is visited? The only info. I found in the forum applies to the old version of Indexhibit, or so I think. Any help would be greatly appreciated. (I have been able to accomplish this where the highlight spans that entire line on the menu, but I would like only the word to remain highlighted, not the entire line.)

wfergs.com

arsondpi
GREECE
1 year(s) ago
Permalink Post

so, for example, you want just one word of the exhibit title to be highlighted when you visited that exhibit?

wfergs
UNITED STATES
1 year(s) ago
Permalink Post

Sorry if I wasn't clear. I would like the entire exhibit title (in the menu area) to be highlighted when someone visits the exhibit. I have been able to accomplish this upon hover and active but not when the page is visited.

For example, when someone clicks Photo, I would like Photo to be highlighted while the viewer browses that page.

arsondpi
GREECE
1 year(s) ago
Permalink Post

This works for section titles:

  1. #index .active_section_title { background: yellow; }
wfergs
UNITED STATES
1 year(s) ago
Permalink Post

On my site, this highlights the entire line of the section title. (I left it like that so you can see what I mean.) How would I highlight just the section title and not the entire line the section title is on? Thanks again!

lemathieu A
FRANCE
1 year(s) ago
Permalink Post

Hello,
first of all, you have the same rule in 3 different css (base.css and style.css and index.php) : font-weight (bold in one, normal in the other)…
You can't do that. Adjust styles via css stylesheet(s).
Better to fix problems ;)

Best Answer!
arsondpi
GREECE
1 year(s) ago
Permalink Post

In order to highlight just the word use only this rule in the style.css

  1. #index .active_section_title a { background: #d0d; }

Of course you can adjust the colour to your own liking...

wfergs
UNITED STATES
1 year(s) ago
Permalink Post

Awesome, that's exactly what I was looking for! Thank you, arsondpi. And, thanks for the input, lemathieu. I'm (obviously) very new to this but am doing my best to learn. The forum has been really helpful.

 

This thread has been closed, thank you.