Need help please with CSS code
-
I am using the Colinear theme, and you want to hide the header image on my site, except on the homepage.
The homepage ID is 763
Can anyone help me please? Thank you in advance
The blog I need help with is: (visible only to logged in users)
-
Hi there!
Because you want to hide the header image on all but one page this will actually be a two step process.
First, you’ll want to add a code that completely hides the header image:
.header-image { display: none; }That will affect everything, including the home page.
Next, you’ll want to add a second style that counteracts the first, but only a specific page.
.page-id-763 .header-image { display: block }That will set the image to display based on the page ID :)
You’ll want to add each of these to the CSS section of your site’s Customizer.
You can learn more about using CSS on WordPress.com at https://en.support.wordpress.com/custom-design/custom-css/ and some good CSS starter tips on
https://en.support.wordpress.com/custom-design/css-basics/ -
- The topic ‘Need help please with CSS code’ is closed to new replies.