change link attributes
change link attributes
change link attributes
Code Available here which is written by chrisguitarguy
There shout not be code like <meta name=”robots” content=”noindex,nofollow” /> with default WordPress installation unlike you place a mark for ‘discourage search engines from indexing this site’ with installation or using setting. If it is the case you can do following thing to remove it. Go to Settings > Reading and unmark Discourage Search Engines. … Read more
How to change all external links to “nofollow” but only by user role
It sounds as though a plugin or theme function is already adding ‘nofollow’ to the widget, so it might be a case of needing to remove a plugin not add one. It might be being added in your Theme’s functions file with the following function: wp_rel_nofollow You could try searching for that function thought your … Read more
not sure but try this echo ” <a href=””; the_permalink(); echo “” rel=”nofollow”>”.”(…)”.”</a>”; also have a look on this <a href=”https://wordpress.stackexchange.com/questions/6077/<?php the_permalink(); ?>” rel=”nofollow”>(…)</a>
One part of removing your site from Google is to add <meta name=”robots” content=”noindex,follow” /> to every page. If you can edit the theme code then you could just add this to header.php (and any variants). You could also use a plugin. I’ve not tested any, but https://wordpress.org/plugins/simple-robots-meta/ claims to do the job simply.
Edit 2: By suggest of @Mark Kaplun, the general solution should be this. We will do filtering after the page is generated, so we won’t care about which plugin we’re using. We need a hack here to get whole page: ob_start(); add_action(‘shutdown’, function() { $final=””; // We’ll need to get the number of ob levels … Read more