Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Post Page Hero Featured Image Element Edit

  • I will wait, i saw over the weekend, them slowly build up more and more and more LOL and thought to myslef, dayum… She’s got a l,ot of replies to get through lol

    Yeah I’ll wait until you’ve caught up and it’s more chill, just reply to me last 🙂

  • Hi there,

    You can use the Display Rules Exclusion List to exclude any older posts you don’t want the new page hero to apply to.

    However, this could be challenging to manage if you have many posts.

  • I have over 2,500 so i think that will be a challenge

  • Can you try this CSS to hide the image block you added to your post content? Then you can enable the page hero element:

    .single-post .entry-content > .wp-block-image:first-child {
        display: none;
    }
  • I mean, i guess this about the best i am going to get. It worked, but where i have older posts from years ago where i put the featured image after the first line that introduces the article and even worse back in 2012/2013 where i use to put the featured image right at the bottom (don’t ask, i was a noob back then) the posts duplicate. Most of my new, i would say the last 1,500 articles are great with this added CSS you’ve given me, but the other older 1K are not :/

    To my original question that i asked right at the beginning of this thread, is there no way to disable an element on all posts but manually enable it per post to my liking. Almost like, from now on or from this moment onwards, the page hero element is a thing, but all the older articles can stay as they are. I don’t think this is possible though.

    One other thing, i don’t know if this is possible, but is there a way to set the CSS to be display none on the first image block, not block period?

  • To my original question that i asked right at the beginning of this thread, is there no way to disable an element on all posts but manually enable it per post to my liking.

    You can set this by including only the posts you want the element to apply to under the Location display rules.

    One other thing, i don’t know if this is possible, but is there a way to set the CSS to be display none on the first image block, not block period?

    Sorry, not sure what you mean by “block period”. Can you explain a bit more?

  • Meaning of Period = End of, That’s that, Nothing else ect…

    Block Period, i mean just a block, but is there a way to set that css so that it’s the first block image instead of just block. That’s what i mean. That way, my introductory text will be ignored if it’s on the first line and the code will look for the image block instead to display none.

  • Hi there,

    Do you mean this image?
    https://app.screencast.com/uertu2UUr5c2b

    If so, it’s added manually via an image block, it’s not the featured image GP added.

    In this case, you will need to manually remove the image blocks from each post, unfortunately!

  • So were all the others, but they have disappeared. I added ALL my featured images into an image block

  • Can I see an example of a post its image block doesn’t show?

  • Yeah sure

  • Those posts’ image block are hidden by this CSS:

    .single-post .entry-content > .wp-block-image:first-child {
        display: none;
    }

    can you link me to the post that still show the image block again? so I can compare them and modify the CSS.

  • Change the CSS to this:

    .single-post .entry-content > .wp-block-image:first-of-type {
        display: none;
    }
  • What do i select? Is the code correct? Here’s two screens:

    https://ibb.co/RTsgSDwG

    https://ibb.co/HD00FTTv

  • Sorry i made a mistake and deleted the previous } character. It’s all sorted now thank you 🙂

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