Jump to content
Sign in to follow this  
basmati

different header images with CSS and page names, instead of ids

Recommended Posts

basmati

Using different header images seems to be quiet easy. but i thought i could use the name of a page like "contact" to identify each page. with css and page IDs it works like this:

body.page-id-13 #brandnav{
		background: url("images/header-001.jpg") no-repeat scroll 0 0 transparent;
	}
	

Question: is there a way to use the name of a page instead of IDs?

Share this post


Link to post
Share on other sites
catrina

The only way to use the name of a page instead of IDs is if you go into the parent files and change them (which isn't recommended since parent files should stay unedited).


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×