• Resolved depchanh

    (@depchanh2019)


    Hi,

    Can you help me this problem:

    The title tags of sidebar on product/product archive page are H2, i want to change them to H3 for seo friendly, how to do?

    I use astra theme and i found the way to change heading tag of sidebar on blog page, but can’t do on single product/product archive page.

    Here’s my site: https://vietnamcastiron.com/product/pan-support-1/

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @depchanh2019

    This is something that is registered by your theme, not WooCommerce. May I ask how you changed this to apply to the Blog page? I may be able to see what you can add to apply it to the other pages.

    Thread Starter depchanh

    (@depchanh2019)

    Hi Tony A,

    Here is the code i add to function.php:

    add_filter( ‘astra_widgets_init’, ‘widget_title_tag’, 10, 1 );
    function widget_title_tag( $atts ) {
    $atts[‘before_title’] = ‘<h3 class=”widget-title”>’;
    $atts[‘after_title’] = ‘</h3>’;
    return $atts;
    }

    Hi @depchanh2019,

    I took a look at the site for you just now and it appears that you were able to change these widget titles to H3 tags. Here’s what I see in the code.

    h3

    If you still have trouble, let us know.

    Take care

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change title heading tag of sidebar on single prroduct page’ is closed to new replies.