Site logo

[Support request] Fixing the spacing in Header and Footer

Home Forums Support [Support request] Fixing the spacing in Header and Footer

Home Forums Support Fixing the spacing in Header and Footer

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #1555097
    Sara Genone

    ops 🙂
    Thank you

    #1555118
    David
    Staff
    Customer Support

    No problem – glad to be of help.

    #1559840
    Darshil

    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

    #1559865
    Elvin
    Staff
    Customer Support

    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. 🙂

    #1559903
    Darshil

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

    #1559910
    Elvin
    Staff
    Customer Support

    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;
    }
    #1559915
    Darshil

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

    #1560174
    David
    Staff
    Customer Support

    I explained here what you need to remove from your child theme functions.php

    https://generatepress.com/forums/topic/fixing-the-spacing-in-header-and-footer/#post-1555061

    #1560199
    Darshil

    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!

    #1560563
    David
    Staff
    Customer Support

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

    #1560887
    Darshil

    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?

    #1561685
    Leo
    Staff
    Customer Support

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

Viewing 12 posts - 16 through 27 (of 27 total)
  • You must be logged in to reply to this topic.