• Resolved greenday

    (@greenday)


    How could I put the subtitle on the same line as the product title, in other words keep it within the <h1> tag?

    Here is the function I am using…

    function kia_add_subtitle_to_woocommerce(){
    if( function_exists( 'the_subtitle' ) ) the_subtitle( '<span class="newbadge">', '</span>' );
    }
    add_action( 'woocommerce_single_product_summary', 'kia_add_subtitle_to_woocommerce', 7 );

    add_action( 'woocommerce_after_shop_loop_item_title', 'kia_add_subtitle_to_woocommerce', 7 );

    add_filter( 'manage_product_posts_columns', 'kia_reorder_woocommerce_columns', 99 );

    • This topic was modified 9 years, 7 months ago by greenday.
Viewing 1 replies (of 1 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    The easiest way might be to use CSS? Otherwise you need to adjust the WooCommerce product title… you could try overriding the single-product/title.php template.

Viewing 1 replies (of 1 total)

The topic ‘Same Line As Product Titles’ is closed to new replies.