[Support request] Unable to get Page Hero Header Element to show on Woocommere Single Product Page

Home Forums Support [Support request] Unable to get Page Hero Header Element to show on Woocommere Single Product Page

Home Forums Support Unable to get Page Hero Header Element to show on Woocommere Single Product Page

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #1486026
    Ree

    Here are my settings in Header Element:

    http://prnt.sc/uy7c6k

    Display Rules:
    http://prnt.sc/uy7cml

    I’ve disabled all plugins and I don’t have any caching plugins on my WordPress, but it still doesn’t show up.

    In the html it shows page-hero, but empty <h1>

    #1486221
    David
    Staff
    Customer Support

    Hi there,

    can you link me to your site where i can see a Single Product and the broken header element ?

    #1486324
    Ree

    Here it is :

    https://bit.ly/34VsBhx

    #1486356
    David
    Staff
    Customer Support

    What happens if you just add some Plain HTML to the Header Element: eg.

    <h1>Test title</h1>

    Does that display?

    #1486370
    Ree

    Nope it doesn’t display anything after I added the HTML.

    #1486530
    David
    Staff
    Customer Support

    Do you have any other Header Elements ?
    If so can you provide a link to a screenshot showing the list of them

    #1486533
    Ree

    https://prnt.sc/uyfzky

    only the default + 1 customised by me named Woo to target single product.

    #1486573
    David
    Staff
    Customer Support

    Edit the Page and Posts Headers and in its Display Rules > Exclude: Products > All Products.

    #1486928
    Ree

    Thank you works like a charm!

    #1486939
    David
    Staff
    Customer Support

    Glad to hear that

    #1486945
    Ree

    Is there a way to not use product image as the featured image?
    In other words a separation between header image and product image.

    #1486990
    David
    Staff
    Customer Support

    You can use a Custom Image, instead of the featured image, as the Header Element background. But this would be the same image for all products — unless you created a separate header element for each.

    The only alternative would be to add a Custom Field to each product for your ‘other’ image. Then we could assist with some PHP to have that display.

    Let me know.

    #1487826
    Ree

    i’m interested to know about the PHP way, do share!

    #1488047
    David
    Staff
    Customer Support

    You will need to enable Custom Fields in the Woocommerce products – edit a product and click screen options and check Custom Fields.

    Then this topic provides the PHP and explains the naming of the custom field in that code.

    https://generatepress.com/forums/topic/different-hero-image-for-single-posts-which-is-not-the-featured-image/#post-1185307

    #1489688
    Ree

    thank you!

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