I found this script which highligts active link based on page id given in body tag (https://www.youtube.com/watch?v=dRLOHxyCaGU). The problem is that i have same named links in couple of sections on my page, so they get highlighted both at some point.
So, is there any way i could give my links seperate id or something so it would be highlighted only in correct place? I wouldt like to rename my links because of this... Thanks
Give up on using :contains. You need a unique way to go from the id to the link’s parent. Since you are using PHP, you could just add active on the server to the link that is supposed to be for this page.
JΛ̊KE
Leave a comment on jakecigar's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic