Forums » Installation

Current page code

eimear
IRELAND
2008-08-12 12:04:06
 

Hi all, I'm trying to change the link style so that the current page shows differently to the other links. I've been searching sites for answers and php seems to be the way to do it, but its a bit above me at the moment. I just wanted to check if you had already created a solution to this?

snoep
GERMANY
2008-08-12 12:07:59
 

Hi!

Check your style.css in the template-folder (proberably 'sample') and set the a:active {} style to something appropriate.

cheers!

eimear
IRELAND
2008-08-12 12:09:39
 

I've been trying that, and I found that 'active' actually means 'onclick' and not the current page. I always thought that was it but apparently not?

snoep
GERMANY
2008-08-12 12:14:08
 

.. so you are accessing your 'current page' not via the link in the menu, but someway different, and then you want to indicate this in the menu? did i get that correctly?

eimear
IRELAND
2008-08-12 12:15:51
 

I'm accessing all links from the main nav, but want to change the style for the current page, so that, say, the link is underlined when you're on that page. I always thought it was a:active but just found out its not that simple. Does this make sense?

LeslieOA M
UNITED KINGDOM
2008-08-12 12:18:41
 

Not really. Do you have a live example (website link) of the effect you currently have or the effect your trying to achieve?

Peace.

eimear
IRELAND
2008-08-12 12:28:52
 

Heres a sample taken from a site which describes how to do it, but it doesnt seem this simple: http://bonrouge.com/one-ten/five.php

They advise creating multiple php pages but I was wondering if someone had solved this already. Their advice is here:http://bonrouge.com/br.php?page=current

Sorry, this may be ludicrously simple, I just can't seem to find an appropriate way to do it.

Vaska A
I WROTE THIS
2008-08-12 12:29:16
 

No...css is the way to do it...

  1. #menu li.active a { }

eimear
IRELAND
2008-08-12 12:36:25
 

Ha! thats it. Thanks a million Vaska, genius. Hope this helps others.

Showing 1 - 9 of 9 posts in Forum > Installation > Current page code
 

This thread has been closed, thank you.