Thread Starter
moskii
(@moskii)
I just updated to the 1.2.7 version of the theme but the problem persists
Hi @moskii,
You will need to make some changes to your theme’s backend code in order to display the header image in place of your post’s featured images.
The first step for this is to create a child theme. You can freely override the Pique theme’s code using a child theme, without losing any changes when the time comes to update the theme in the future.
Once you’ve created your child theme, copy the header.php file from your parent theme and remove the following snippet of code from it:
the_post_thumbnail( 'pique-header', array( 'id' => 'pique-header-image' ) );
else : // Otherwise, let's just show the header image
Let me know how you get on with those steps or if you have any questions.
Thread Starter
moskii
(@moskii)
I’ve created the child theme, with the style.css and the functions.php files just as the link instructions.
I found the file and the code you suggest to remove. Ok, now I copy the file.. where? in my child-theme directory? And what then? Do I need to change something else?
I’m sorry, first time doing this, can you explain in detail this step?
Thank you very much!
Hi there,
You’ll need to copy header.php from your parent theme to your child theme’s directory.
Files placed in your child theme’s directory have priority, so the child theme’s header.php will be the one that loads on your site. With this in mind, you can edit the file in your child theme to your liking and the edited version of your header will be the one that loads.
Remove the code I pointed to from the child theme’s header.php file.
Hope that’s helpful! If you’re interested in learning a bit more about how child themes work then there’s some good resources here:
https://themebeans.com/tutorials/child-themes-101/
I’d be happy to help with further questions, also.
I am having the same problem and would like the header to stay in place when I am on the blog posts. I tried the fix you suggested and it didn’t work at all. It causes there to be no image at all in the header. What do you suggest?
Hi @kerrigo,
Can you please start a new thread on this forum and provide a link to your site? (The site linked to in your username is using a different theme to Pique.)
In your request, please include the steps you’ve already taken e.g. Have you set up a child theme? Have you edited the header.php file?
I’ll be happy to help from there!