Archived topic
Subtitle under producttitle on productpage
24 replies · Started by hans_grif on April 7, 2022
Hi There,
I found some information about creating subtitles with Elements on your support page, but I don't understand how to manage the following.
On my product page I would like to have a subtitle under the product title. How do I get this done?
Thank you.
Hi there,
you need somewhere in the editor to store your 'subtitle' - are you using the ACF ( Advanced Custom Fields ) plugin ? As that would allow you to add a field for your subtitle.
Hi David,
I just did insall the free version of it. Is that sufficient?
The Free version is fine i believe it works with Woo.
Try it - add a new field for your subtitle and assign it to the Woocommerce products - if you can see the filed there then let us know :)
Hi David,
I see the field on the product page but can't enter anything.
Weird, i just tested. I did:
1. ACF - created a New Field Group and titled it: Woocommerce
2. Set the Location Rules: Show this field group if > Post equal to Product.
3. Added a New Field.
Field Label: Subtitle
Field Name: subtitle
Field Type: Text
4. Published that.
Hi david,
Yes i can fill in the subtitle now, but after hit publish, it does nit show on the front-end.
Hi there,
Setting the custom field is the first step. Then you need to do this:
Follow the screenshot: https://www.screencast.com/t/Etc5ZWXy
1. Go to appearance > elements, create a new block element.
2. Add a headlineblock from GenerateBlocks, click the dynamic option button, set post meta as the dynamic text type, enter 'subtitle' as the Meta field name.
3. Select hook as element type, enter 'woocommerce_single_product_summary' as hook name.
4. Set the priority to 8, so that the subtitle appear between the title and price.
5. Select products > all products as location.
Let me know :)
Hi David and/or Ling,
I did as you told me, but still no subtitle showing on my shop page.
In ACF what is the Field Name you set ?
Hi David,
The field name is: subtitle
To be clear. I want only a subtitle on my shop page: https://shop.grifontwerp.nl/ Not on the single product page.
Thanks so far.
Ok, so set the Hook to: woocommerce_after_shop_loop_item_title
And set the Display Rules Location to: Entire Site
I did. No result yet. See private information
Can you share a screenshot of the Dynamic Data you have selected on the post meta headline block ?
Hi David,
Thanks sofar for your help. Screenshot in private.