Home › Forums › Support › Unable to get Page Hero Header Element to show on Woocommere Single Product Page
- This topic has 15 replies, 2 voices, and was last updated 5 years, 6 months ago by
David.
-
AuthorPosts
-
October 12, 2020 at 10:49 pm #1486026
Ree
Here are my settings in Header Element:
Display Rules:
http://prnt.sc/uy7cmlI’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>
October 13, 2020 at 2:19 am #1486221David
StaffCustomer SupportHi there,
can you link me to your site where i can see a Single Product and the broken header element ?
October 13, 2020 at 3:15 am #1486324Ree
Here it is :
October 13, 2020 at 3:38 am #1486356David
StaffCustomer SupportWhat happens if you just add some Plain HTML to the Header Element: eg.
<h1>Test title</h1>Does that display?
October 13, 2020 at 3:50 am #1486370Ree
Nope it doesn’t display anything after I added the HTML.
October 13, 2020 at 5:16 am #1486530David
StaffCustomer SupportDo you have any other Header Elements ?
If so can you provide a link to a screenshot showing the list of themOctober 13, 2020 at 5:19 am #1486533Ree
only the default + 1 customised by me named Woo to target single product.
October 13, 2020 at 5:40 am #1486573David
StaffCustomer SupportEdit the Page and Posts Headers and in its Display Rules > Exclude: Products > All Products.
October 13, 2020 at 8:04 am #1486928Ree
Thank you works like a charm!
October 13, 2020 at 8:13 am #1486939David
StaffCustomer SupportGlad to hear that
October 13, 2020 at 8:15 am #1486945Ree
Is there a way to not use product image as the featured image?
In other words a separation between header image and product image.October 13, 2020 at 8:48 am #1486990David
StaffCustomer SupportYou 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.
October 13, 2020 at 9:26 pm #1487826Ree
i’m interested to know about the PHP way, do share!
October 14, 2020 at 1:22 am #1488047David
StaffCustomer SupportYou 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.
October 14, 2020 at 11:10 pm #1489688Ree
thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.