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.

Preload Page Hero Background Image

  • I am trying to preload the page hero background image. For the single post or page when the featured image is present, I am fetching the image URL by using the “get_the_post_thumbnail_url()” function.

    But how to fetch the image URL when the image is directly assigned under the Page Hero Header Hook? Is there any generatepress function present to call that background image?

    Please let me know.

  • Hi there,

    No, I don’t think there’s an automatic way, unfortruanly.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.