-
Hi. Please tell me how I can keep the Default Header Image from being changed when I make a post with a YouTube Video Link with Featured Image grabbing the video thumbnail.
Basically I would like to keep showing the Default Header Image that I uploaded, permanently.
Thank you for any help.
Hello and thanks for reaching us.
In order to show your default header image permanently, just deactivate the video thumbnail plugin and you should be ok 🙂Just try and keep me posted on that.
Andrea
Thank you… So, I should have added that it is important that visitors are able to see my default uploaded banner, and that each post show the thumbnail of the youtube link within.
If I disable the video thumbnail plugin, then every post on the homepage just becomes a black box with the title text etc of the post, but no graphic.
My vision is my blog looking like my YouTube channel, only when they click on a post, instead of playing the video, it opens up as an article, with a video.
Hopefully that makes sense and I have made it clear my need.
Thank you.
While I await your reply to the above, I dug around various wordpress forums and noted that for many, the solution involved ‘Content Options’ and checking an option that is called Do not allow Default Header to be changed by Featured Image; while in certain themes some extra code added to functions.php in the child folder would fix it.
I am sure I am missing something. I also note that there is no Content Options in the Customizer.
Thanks
Hello!
Honestly I didn’t understand your request but I’ll try to answer as best as I can.If I am right, you need to display the default featured image added in the customizer across all your website headers.
If this is the case, you will need to add a little snippet of code on your website.Before proceeding make sure to backup your website 🙂
Assuming you are already using the child theme (if not, please check our manual here http://themes2go.xyz/manuals/vlogger/knowledge-base/theme-installation/), with your preferred FTP manager navigate to wp-content/themes/vlogger-child. When you open this folder, you’ll see the functions.php file.
Open the file and paste at the end of it this little code snippet.
/** * * Extract header image * ============================================= */ if(!function_exists('vlogger_header_image_url')){ 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; }}
Just save it. Now the default featured image should be seen across all the pages included your archives.
Hope this can fix your issue. If not, just reply below 🙂
Best,
Andrea
Glad it works! 🙂
If you have any other issues just let me know.
Andrea
The topic ‘Featured Image in Post Replaces Default Header/Banner’ is closed to new replies.