Home › Forums › Support › How can I make the pagination links nofollow? This topic has 3 replies, 2 voices, and was last updated 8 years, 3 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 26, 2016 at 3:56 pm #168240 Brandon Hello, I am wondering how to make the pagination links (next,previous,1,10) nofollow? The code I found for the functions.php did not work. Please let me know. Thanks! January 26, 2016 at 11:36 pm #168271 TomLead Developer Lead Developer Hi there, Not sure if this will work but give it a go: https://gist.github.com/generatepress/79a3b6e8493e09ab1aae Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/ Let me know ๐ January 26, 2016 at 11:50 pm #168277 Brandon This worked like a charm. I was using: $links = str_replace( ‘href=”‘, ‘rel=”nofollow” href=”‘, $links ); Thanks again! Bed time. January 26, 2016 at 11:53 pm #168281 TomLead Developer Lead Developer That’s great! You’re welcome ๐ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In