• Hi, i’m pretty new, first things said.

    While editing a post, I noticed that by setting a featured image it automatically appears as a background image in the main page. That’s quite good, I love it. But it also modifies the header of the post, and I don’t like that. I would rather keep the logo just like in the main page. Is it possible? How can I do it?

    My site is fisicadebar.com in case it helps. Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Setting featured image changes the post header’ is closed to new replies.