Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #276170

    Hello, I would like to add the attribute rel=”nofollow” on links, in the button shortcode (av_button). How can I do that ?
    Thank you for your help

    #276177

    Hi JBMKL!

    Thank you for using the theme!

    Edit js > avia.js, find this code on line 7:

    var aviabodyclasses = AviaBrowserDetection('html');
    

    Below, add this code:

    $('a.avia-button').attr('rel', 'nofollow');
    

    Cheers!
    Ismael

    #276180

    Hello,
    Thank you Ismael.
    Do you think it could be only an authorized parameter that I couls add in my editor ? Like this : [av_button label=’test’ rel=’nofollow’…
    In order to add the attribute only when I need and not on all buttons used on the website ?

    #276198

    Hi!

    Please turn on custom CSS field for Advanced Layout Builder elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
    Then add this custom class to buttons you would like to have rel=’nofollow’ – http://i.imgur.com/KOaCgrv.png
    and go to Appearance > Editor and open Functions.php file and add following code

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(".rel-nofollow a").attr("rel", "nofollow");
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');
    

    Cheers!
    Yigit

    #276363

    Excellent !
    Thank you very much for your help and your quick answears !
    JB

    #276378

    Hi!

    You are welcome, glad we could help! Let us know if you have any other questions or issues

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add rel="nofollow" on button links’ is closed to new replies.