-
The featured image replaces the header image from the most recent post. Without the featured image the post is blank and the header image displays. Once the featured image is added in it replaces the header image. I don’t want that to happen, I want the header image to stay in place no matter what the featured image is. The second question is do the posts have to be one after the other can they be displayed in pairs dropping down the page ? My url is https://thebbqbaker.com im using the themeforest.
1) header image: this requires some coding, it would be a bit out of the support terms so I can’t give you a file “ready to go” but you can put some code in the functions.php of the child theme to change this.
Please put this code at the end of the child theme’s functions.php
function vlogger_header_image_url($id = null, $print = true) { $image_url = get_theme_mod( 'vlogger_header_backgroundimage', '' ); if($image_url){ if($print){ echo esc_url($image_url); } else { return esc_url($image_url); } } return false; }
2) There is no such template, you can choose between the etmplate you are using and the grid template which is like this: http://themes2go.xyz/demos/vlogger/vlogger-food/blog-grid/
To change template, you can use the dropdown in the page settings (even thou I think you know this already).
If you want to make a custom teplate, youn can copy an archive file to the child theme (like archive.php), then in the header of the file copy the Template Name from another template, for example from Archive Grid, remember to change the name.
In your new archive.php which you can call archive-custom.php, you need to change the HTML between lines 118 and 137 in order to add a new ROW container and change the “col s12” to a “col s12 m6 qt-spacer-s”. Then change the template to the small one
get_template_part ( 'phpincludes/part-archive-item-large' );
get_template_part ( 'phpincludes/part-archive-item-medium' );
Please notice that this is a complex change, and code customizations like this one are not part of the support service so I can help you till here, but you need to put some work in it.
Thanks
The topic ‘On the post page a featured image replaces the Header image’ is closed to new replies.