lainyrache Posted September 27, 2007 Share Posted September 27, 2007 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: Quote Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2007 Share Posted September 28, 2007 I'm confused. What is it you want to do? Make the active page link highlighted or something? If so, you can do that in the css for links. Quote Link to comment Share on other sites More sharing options...
lainyrache Posted October 1, 2007 Author Share Posted October 1, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.