[Resolved] Make product title look like page title H1

Home Forums Support [Resolved] Make product title look like page title H1

Home Forums Support Make product title look like page title H1

  • This topic has 7 replies, 2 voices, and was last updated 4 years ago by David.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1253042
    Alex

    Hi! Is it possible to transfer product name from the right side of the page to the top to make it look like the article title H1 as on other pages. Thanks for your assistance!

    #1253116
    David
    Staff
    Customer Support

    Hi there,

    try adding this PHP snippet:

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title' , 5);
    add_action( 'generate_before_content', function(){
    	if ( is_product() ) {
    		woocommerce_template_single_title();
    	}
    }, 5);

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1253125
    Alex

    That’s just great, David. Thank you!

    #1253136
    David
    Staff
    Customer Support

    You’re welcome

    #1253137
    Alex

    Could you please check the site again, David. Double H1 titles has appeared on other pages except products.

    #1253150
    David
    Staff
    Customer Support

    Ooops – Edited the code above.

    #1253164
    Alex

    It worked, thanks a lot for your great and prompt support!

    #1253167
    David
    Staff
    Customer Support

    Glad we got it resolved 🙂

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