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
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
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 ?
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
Excellent !
Thank you very much for your help and your quick answears !
JB