[Support request] Subtitle woocommerce

Home Forums Support [Support request] Subtitle woocommerce

Home Forums Support Subtitle woocommerce

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #647429
    Edwin

    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

    #647468
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #647502
    Edwin

    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.

    #648024
    Tom
    Lead Developer
    Lead Developer

    Try this hook: woocommerce_single_product_summary

    Then set the priority to: 6

    Let me know ๐Ÿ™‚

    #648532
    Edwin

    Hi Tom

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

    #648584
    Tom
    Lead Developer
    Lead Developer

    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?

    #648661
    Edwin

    Hi Tom

    I got it to work with short-code for single page, but don’t get it to work in the category and shop page.

    https://visualdevelopment.com.au/covertel/product-category/fiber-cleaning/

    #648732
    Tom
    Lead Developer
    Lead Developer

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

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