Removing Header Image Pages in Menu
-
I only want a header image on my home page. The others only title and tagline and shorter.
-
I think this will do what you are looking for.
body #site-header img { display: none !important; } body #site-branding { margin: 0% 10% !important; } body.home #site-header img { display: block !important; } body.home #site-branding { margin: 5% 10% !important; }Let me know if this doesn’t accomplish what you were looking for.
-
That removed the pic but I need padding around the title and tagline they are overlapped.
-
Does this work any better?
body #site-header img { display: none !important; } body #site-header { min-height: 100px; } body.home #site-header img { display: block !important; margin: 0 auto; } body.home #site-branding { margin: 5% 10% !important; } body.home #site-header { min-height: 0; } -
Much better. I either need the tagline not to show up on any page but the first or more padding. I left the code in. If you want to look at the site you will see what I mean. http://escortinternetdesign.co.
Thank you so much
Please help with this last step.
Gail -
If you want to add more padding to the tag line you can use this code
.site-description { padding-top: 20px; } body.home .site-description { padding-top: 10px; }This adds 20px to all pages except the first page which only adds 10px. So you can adjust those numbers as you like.
Hope that helps.
-
-
I think something like this would do it.
.site-description { visibility: hidden; } body.home .site-description { visibility: visible; } -
-
- The topic ‘Removing Header Image Pages in Menu’ is closed to new replies.