|
|
Question : Changing Font Color with PHP According to Page
|
|
Hello Experts,
I am new to PHP and I am using it to code a website using Wordpress as the CMS. At the moment, each page has a different title which is displayed just beneath the menu. I would like to use a different color (colors that I've already chosen) for the text in the title, according to which page it is.
Meaning, the "pets" page would display the title "Pets" in green lettering...the dogs page would display the title "Dogs" in brown lettering...and so on.
I am currently working with a combination of css and php... I've placed the title's php code in a div tag, which is ID'd in CSS to control its font size, etc.
Is there anyone that knows how one can change the font color for the title, according to which page is being displayed, using PHP?
Thank you in advance...
Open in New Window
Select All
|
Answer : Changing Font Color with PHP According to Page
|
|
You could do it strictly using CSS by putting the individual titles in div tags with unique IDs. that would be easiest.
|
|
|
|
|