hi
It is well documented that you cannot have a slider above the masthead on a posts page in Ethos without editing the functions.php file. I don’t know why it was built that way, but it is what it is.
I found a thread which describes fully how to do it and have edited the functions.php file with the following
add_action( 'x_after_view_global__slider-above', 'x_print_top_slider' );
function x_print_top_slider(){
if( is_singular('post') || is_category() ){
echo do_shortcode( '[rev_slider alias="Content_Page"]' );
}
}
I didn’t originally have a slider with the alias Content-Page, so changed an existing one to that alias to be able to test. This is the message which appears when I open that post page up.
Here is a copy of the shortcode so you can see the alias is correct
[rev_slider alias="Content-Page"][/rev_slider]
Two questions; why is the posts page not detecting the slider and why does the background image appear in the sidebar as well and not just above the masthead?
The aim of all of this is just to be able to put a background image above the masthead in posts pages and have it full width and height. I am not married to the idea of doing it in a slider unless that is the only way. I want a different image for each post page, so will there need to be a new entry in functions.php for each and every page I want to do this on? Seems a cumbersome way to add an image above the masthead.
If you need the posts page in question let me know and I can supply login details. I do hope this is possible, as I’d like to have some consistency with the site and a hero image on every page appeals to me.
Regards