The header image on your site is in fact a slider. What exactly would you show on your home page instead of the slider?
Thread Starter
ps1
(@ps1)
You actually caught me trying stuff. The header is there now. I actually want the slider as the header on the front page only
Cheers
Sorry
No problem. Well,at the moment,in the menu you have only pages. None of them is showing the slider when opened. So,that’s it,right?
Thread Starter
ps1
(@ps1)
No I only want the slider on the home page not all pages. I just did not want the header image above the slider on the home page. On the other pages/posts I want it there. In other words substitute the slider for the header on the home page
Cheers
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Look at wrapping your slider in a conditional tag
http://codex.ww.wp.xz.cn/Conditional_Tags
A tag that says,
if ( is_home ) {
// Do your slider stuff
}
Thread Starter
ps1
(@ps1)
Thanks Andrew the slider works fine. It displays on the home page but not on the other pages. That is the way I like it.
I just need to remove the header image above the slider on the home page only. I would like the header to appear on all other pages and posts though.
Thanks
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Oops, you can either do the same conditional tag (as above) or run some CSS:
.home .yourHeaderImage {
display: none;
}
Thread Starter
ps1
(@ps1)
Thanks Andrew I placed that code at the bottom of style.css and made no change.
Cheers
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I can’t see a header image on your site so I used that code as an example.
I’m sure you don’t have a class called “yourHeaderImage”.
Thread Starter
ps1
(@ps1)
The header is there is called
http://ebarlowphotos.com/wp-content/uploads/2013/04/fiu12.jpg
Excuse my ignorance I don’t know how to make that code usable?
Thank You
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Do:
.home #branding img {
display: none;
}
Are you creating a new theme?
Thread Starter
ps1
(@ps1)
No just customising a theme call twenty-eleven-child. It is basically an exact clone of the built in twenty eleven one. Saves modifying the original twenty eleven. Have fumbled my way around it to get something unique as you can tell.
Will try that code at the end of style.css
Thank You
Thread Starter
ps1
(@ps1)
The last one worked great.
Thanks so much