Viewing 1 replies (of 1 total)
  • Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    Currently there is any hook to remove this attribute, however you can use the following code to include a JS code that removes it when the document loads:

    if( ! function_exists( 'yith_woocompare_remove_rel_attr' ) ){
    function yith_woocompare_remove_rel_attr(){
    $js ="jQuery(document).ready(function($){
    $('.compare.button').removeAttr('rel');
    });";
    wp_add_inline_script( 'yith-woocompare-main', $js );
    }
    add_action( 'wp_enqueue_scripts', 'yith_woocompare_remove_rel_attr', 20 );
    }

    I hope this code can help you.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.