Jump to content

Current link state in site docs menu


lainyrache

Recommended Posts

Hi

Does anyone know if it is possible to add a class to a link in the Site Docs menu, if it is the current page?

eg if I am on the About page there would be a class of "current" on the link in the navigation.

I am using the 'Show Hide order site documents' modification, but I'm sure this shouldn't make too much difference.

I've had a good look through the forum and can't find a fix for this that does not rely on Javascript, I would prefer to use a php solution.

I have also been in touch with Cubecart support and they said that although they don't currently offer this as standard, with enough php knowledge it would be fairly simple to code.

Can anyone give me any advice/help with this?

Thanks,

Rachael :on2long:

Link to comment
Share on other sites

Hi Mysty,

Sorry if I wasn't very clear in my explanation.

I would like a link on the site docs menu to have a specific class when it is the current page.

IE when I am on the About page, this link in the menu bar will have different colour properties to highlight it.

Yes I can create a class for this in the css, but what I really need is the php to detect what page I am on, and then apply the css appropriately.

Hope that's a bit clearer!

thanks,

Rachael

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...