Site logo

Archived topic

Subtitle woocommerce

7 replies · Started by Edwin on August 13, 2018

Viewing posts 1–8 of 8

Hi

I am using the plugin "KIA subtitle to show a subtitle under each product in woo-commerce.
This is the code to show the the subtitle under each product, but not sure where to put it in the generate press theme.

<?php if( function_exists( 'the_subtitle' ) ) the_subtitle( '<h2 class="subtitle">', '</h2>' ); ?>

It is working for page titles when i add it to "After Entry Title Hook"

Thanks

Edwin

Hi there,

You're wanting to display that under the product, or under the product title?

Check out GPP 1.7 (in public testing, being released tomorrow): https://generatepress.com/gp-premium-1-7/

The new hook system has WooCommerce hooks baked right in :)

Hi Tom

The new function is great. Makes it so much simpler.
I would like to show under title, but didn't see the hook for that.

Try this hook: woocommerce_single_product_summary

Then set the priority to: 6

Let me know :)

Hi Tom

No, that didn't work, it also breaks the single page design.

And you're sure the HTML being output by the function is valid? It definitely shouldn't break anything. Can you link me to the page?

I believe you'd need to use this hook for that: woocommerce_after_shop_loop_item_title

This archived topic is closed to new replies.