Add nofollow in button Read More

Hi i would like to add no follow in button Read More in Sparkling Theme but i dont kwnow why dont work…¿?
I wrote this in content.php:
<p><a class="btn btn-default read-more" rel="nofollow" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php _e( 'Read More', 'sparkling' ); ?></a></p>

why does it not work?


Hi @berli50,

I hope you are well today and thank you for your question.

Could you please try using the attached child theme of Sparkling theme that contains the modified content.php template file which will add nofollow attribute to Read More button?

Best Regards,

Hi @movin it’s ok thanks!

You are most welcome here :slight_smile: