Setting the review title to a header


Hi

For SEO reasons, I’d really like to set the review title .judgment-rev__title to h3 does anyone know how to do this? 

Any advice would be appreciated.

Thanks

1 Comment

Hello there,


Sure we could assist you with that, you can either replace our review widget shortcode the the one below


{% capture review_widget %}
{% include 'judgeme_widgets', widget_type: 'judgeme_review_widget', concierge_install: true %}{% endcapture %}      {{ review_widget | replace: "itemprop", 'duplicated-itemprop' | replace: "itemscope", 'duplicated-itemscope' | replace: "h2", "h3" }}




Or you can simple add the script below to your theme.liquid file 


    <script>

      document.addEventListener("DOMContentLoaded", function(){

        $('.jdgm-rev-widg__title').replaceWith(function() {

          return $("<h3>", {

            class: this.className,

            html: $(this).html()

          });

        });

      });

    </script>  



If you're not sure about this, please send us your shop domain at support@judge.me and we will assist further.


Thank you.

Login or Signup to post a comment