Site logo

Archived topic

Fixing the spacing in Header and Footer

26 replies · Started by Darshil on November 25, 2020

Viewing posts 16–27 of 27

ops :)
Thank you

No problem - glad to be of help.

Hey David,

I want to remove this bug image. It is a duplicate that is being shown above the featured post and outside container

https://ibb.co/LYdNT5B

Hi,

Can you look for any actions or filters that adds something to generate_after_header?

You seem to have a PHP snippet that adds an extra featured image markup hooked to generate_after_header.

Make sure to purge all cache after doing any changes. :)

Clearing Cache didn't work. Where do I look for the things that you mentioned Elvin?

Hi,

You can check Hook Elements, Child theme files(functions.php or any child theme .php files) or Code Snippets plugin(if you're using one) for any thing that's hooked to generate_after_header.

Alternatively, the lazy way is to simply remove it from display with CSS:

body > .featured-image.page-header-image.grid-container.grid-parent {
    display: none;
}

Hey Elvin! I found the line Generate after header in the child theme's functions PHP. I am sharing the entire code with you.

Hi David, I removed the code that you mentioned.

It actually removed the featured image that was in the container, the featured image that lied outside the container was not removed.

I wanted to remove the feature image that was outside the container. You can check the page link that I am sharing right now.

I want the featured image that is outside the container to get into the container.

Thanks!

Remove the function.
Then go to Customizer > Layout > Blog --> Featured Images >>> Post and set its Location to Above Content Area

Bingo. Thanks David.

Also,I use a plugin to add the background image (skyblue) that is present outside the container. Is it possible to do that using GP Premium?

That should be the body background under Customizer > Background Images > Body.

This archived topic is closed to new replies.