Filter Button “noopener”
-
Dear Vladimir,
I have checked the docs and FAQ, but couldn’t figure out this issue.
I am trying to modify the output so when an su_button is created the rel=”noopener” would be rel=”nofollow”.I have tried with this code in the functions.php but didn’t work:
function add_custom_button_style($shortcodes) {
$shortcodes[‘button’][‘atts’][‘rel’] = “nofollow”;
return $shortcodes;
}
add_filter( ‘su/data/shortcodes’, ‘add_custom_button_style’ );I would really appreciate your help in this, we are using Shortcodes Ultimate on all our sites.
Thanks,
Antal
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Filter Button “noopener”’ is closed to new replies.