• Ajay Ghaghretiya

    (@ajayghaghretiya1)


    Hello team,

    This is a very nice plugin that we are using on our big marketplace woocommerce website but having one issue that I am mentioning here with the solution as I am a WooCommerce Developer.

    This plugin is using the H1 heading for displaying for the text “Spread the love!”. Actually, this is not valid in the terms of SEO because we already have one H1 heading for the product title in the product detail pages. So we can not use another title on the page while we need to the improvement of SEO.

    Also, we can not change it without updating the core file of the plugin as you have not to use any filter for this.

    Here, I have attached some code for applying the filter for changing it without updating the core file of the plugin so it would be great if you can update the file accordingly in your next plugin update. So, anyone can update the text as well as the heading from the theme’s functions.php file without updating the core file of the plugin.

    woo-product-social-sharing/public/class-wc_ss_btns-public.php

    Before
    <h1 class=”wc_ss_btns-title”>Spread the love!</h1>

    After
    <?php echo apply_filters( 'wc_ss_title_text','<h1 class="wc_ss_btns-title">Spread the love!</h1>' ); ?>

    functions.php

    add_filter( 'wc_ss_title_text', 'func_wc_ss_title_text' );
    
    function func_wc_ss_title_text( $text ) {
        return '<p class="wc_ss_btns-title">Spread the love!</p>';
    }

    I hope you can understand this thing. Let me know your inputs here.

    Cheers!!
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author DefThemes

    (@defthemes)

    Hi Ajay Ghaghretiya,

    Thank you for pointing this out to us, definitely will add this to the next update.

    Kind regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Heading Tag needs to remove’ is closed to new replies.