I’ll just add something to what I wrote. If I add in shortcode [sliderpro id=”5″ rel=”nofollow”] do you think that all the links inside this shortcode will be nofollow?
Hi,
By default the rel=”nofollow” attribute is not added. In order to use it, you need to make use of the plugin’s API, more specifically filter hooks. These allow you to extend the functionality of the plugin. For example, to add the rel=”nofollow” attribute, you can add the following code in your theme’s functions.php:
add_filter( 'sliderpro_slide_markup', 'slider_slide_markup', 10, 3 );
function slider_slide_markup( $html_markup, $slider_id, $slide_index ) {
$html_markup = str_replace('<a ', '<a rel="nofollow"', $html_markup);
return $html_markup;
}
Best,
David
Small correction to the code above (adding a space after the rel=”nofollow” attribute):
add_filter( 'sliderpro_slide_markup', 'slider_slide_markup', 10, 3 );
function slider_slide_markup( $html_markup, $slider_id, $slide_index ) {
$html_markup = str_replace('<a ', '<a rel="nofollow" ', $html_markup);
return $html_markup;
}
The script works great! Thank you!