2022 Developer Survey is open! Take survey.

Questions tagged [nofollow]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
8 views

How to change all external links to "nofollow" but only by user role

I am looking for this question How can I nofollow all external links by user role? I have found these codes to convert all links to Nofallow, can anyone change these codes according to the user's role ...
user avatar
0 votes
1 answer
62 views

Force meta data on specific product type

I'm working on a Woocommerce website were I have multiple product types: simple_product, enviso_group_offer and enviso_group_ticket. All of these types are just products in my Woocommerce. No I want ...
user avatar
  • 125
0 votes
1 answer
23 views

Insert nofollow in a "Powered By" link, except in the homepage [closed]

I want to insert the nofollow value in a "Powered by" link if the page is different than the homepage. So I have written this: function prefix_poweredby() { if ( is_front_page() ) { ...
user avatar
  • 403
1 vote
1 answer
80 views

How to automatically nofollow a set domains? (I seem to have half of the answer)

There we go with my first question ever on WPSE. Hope someone can lend me a hand here :) I am sick of adding nofollow rel attribute manually on every single outbount link. I´m looking for a code ...
user avatar
0 votes
1 answer
98 views

How to set all external links from a certain user to "nofollow"?

I would like to know how I can set all external links in all posts from a certain wordpress user in my blog automatically to "nofollow" ? So that old postings and future postings from this user are ...
user avatar
0 votes
1 answer
76 views

how to make <?php the_permalink() ?> follow?

i use this code to show posts of wp <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> but all link are nofollow. why they are nofollow wen there is nofollow rel? ...
user avatar
  • 11
2 votes
1 answer
735 views

Why does the header set X-Robots-Tag apply to all pages?

The directives below are intended to apply the header X-Robots-Tag noindex and nofollow to a single page. The directives below are applied before the WordPress code block however it appears to ...
user avatar
  • 151
0 votes
2 answers
1k views

Remove nofollow from specific internal links

I got all my website with a lot of internal cloaked links with a nofollow attribute. I need a function or filter to add inside functions.php that removes the nofollow attribute when the permalink ...
user avatar
  • 23
0 votes
1 answer
126 views

Nofollow attribute in Wordpress link embed code?

I am including links to items I've written for clients in a WP post, but want them to be "no follow" to avoid any issues with those same clients. The links are posted as embed code and I'm not sure ...
user avatar
1 vote
1 answer
52 views

How to change all external links to "nofollow" but only for Contributor role?

Is there a way that I can change all my current (and future created) links to nofollow created by Contributor and leave all links "follow" created by the Administrator or Editor.
user avatar
  • 11
0 votes
3 answers
569 views

Detect and make links nofollow in author description

I have this code in author.php file echo $part_cur_auth_obj->description; How can i parse the echo so the links within the author description will have the rel="nofollow" attribute set ...
user avatar
0 votes
2 answers
946 views

How to set all external links to a certain domain to "nofollow"?

I am searching for a code or better a wordpress plugin to set automatically all links only to a certain domain (and of course to all of its subpages) to "nofollow". I could not find any plugin which ...
user avatar
0 votes
1 answer
312 views

How To Remove a Tag?

I would like to know how to remove the tag nonidex, nofollow from my page header. My website is related to the industry of man and van removal company London.
user avatar
  • 1
2 votes
1 answer
946 views

How to add nofollow site-wide

I'd like to change the meta robot tag on my site to be noindex and nofollow. When I set the WP settings in "Search Engine Visibility" to "Discourage...", it only generates: <meta name='robots' ...
user avatar
4 votes
1 answer
652 views

Nofollow external links

Hello guys i am using following code to make all external links nofollow. add_filter('the_content', 'my_nofollow'); add_filter('the_excerpt', 'my_nofollow'); function my_nofollow($content) { return ...
user avatar
2 votes
2 answers
2k views

Change to nofollow tag in wp-login.php

In wp-login.php default is: <meta name="robots" content="noindex,follow"> I want to change it to: <meta name="robots" content="noindex,nofollow"> Is there an easy way or script to ...
user avatar
  • 187
-1 votes
1 answer
265 views

Anchors in WordPress not followed/ indexed in sitemap.xml

Have anchor tags on a WordPress page about 300 on a page which are not listed in sitemap.xml, these links are generated dynamically. How do I index these? Structure: A navigation link say Games when ...
user avatar
0 votes
1 answer
193 views

Prevent "nofollow" from Being Inserted into BBPress Posts

How can I prevent "nofollow" from being added to my internal links on bbPress posts? (I have the latest version of bbPress and WordPress) The "nofollow" attribute is being added to my internal links ...
user avatar
1 vote
1 answer
402 views

Remove "nofollow" from widget_text

How can I remove rel "nofollow" from a widget_text? I'd like to try a solution without install a plugin. Thanks.
user avatar
  • 99
6 votes
2 answers
1k views

NoFollow Entire Website

By default whenever you disable indexing via Admin Settings [ x ] Discourage search engines from indexing this site It adds a meta tag in the header like so: <meta name='robots' content='...
user avatar
  • 19.6k
1 vote
1 answer
3k views

Removing rel="nofollow" from links posted in Post Content

I am running wordpress for my blog EasyPadhai. I am writing a posts and I have included links to my Android app EasyPadhai for my users. But all links to app are turning in nofollow links. Also ...
user avatar
3 votes
6 answers
2k views

How to use wp_rel_nofollow to add nofollow to external links only?

I want to add nofollow attribute to only external links in the content of the post. Internal links should stay follow. So, can I use wp_rel_nofollow() to make only external links nofollow? Or do I ...
user avatar
  • 1,077
0 votes
0 answers
168 views

Add nofollow to custom field link and make domain exceptions?

I have a theme that enables users to comment a post, and also to add a link inside a custom field. I've tried a few plugins to try to force a nofollow attribute, but none seem to affected the links ...
user avatar
  • 141
0 votes
1 answer
2k views

Noindex,Nofollow in theme's header.php?

My theme's header.php file contains this : <?php if (is_search()) { ?><meta name="robots" content="noindex, nofollow" /><?php } ?> What does that mean ? And does it affect my ...
user avatar
  • 101
1 vote
2 answers
741 views

Adding nofollow to a PHP generated Nav

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $wp_query; if ( $wp_query->max_num_pages <= 1 ) return; ?> <nav class="woocommerce-pagination"> <?...
user avatar
0 votes
1 answer
4k views

WordPress is adding rel="nofollow" and target="_blank" to internal links in posts and pages

For some reason WordPress started to add rel="nofollow" and target="_blank" to some of my links in my posts and pages. Not to all my links but randomly. I really dont know why because when I'm ...
user avatar
-1 votes
1 answer
3k views

How to add nofollow on all external links without plugin?

I have tried many plugins, which are doing the thing I want, but they are blocking my other plugins (1 in particular, which is indispensable for my site). Anyhow; how can I add a nofollow on all my ...
user avatar
2 votes
1 answer
7k views

How to restrict access to wp-content, wp-includes and all sub-folders

after searching I didn't find an answer still confused of how do I hide the -> wp-content --> uploads --> themes --> plugins -> wp-includes in browser. What I want is when viewer browse some like this:...
user avatar
  • 123
1 vote
1 answer
706 views

How to make "more" or "continue reading" links on excerpts nofollow?

I tried to make each one of my post excerpt's link to the full post "nofollow" like this: <a href="<?php the_permalink() ?>" rel="nofollow">&rarr; Continue Reading</a> However, ...
user avatar
  • 115
0 votes
1 answer
310 views

Auto Nofollow attribute in custom field links. How?

I have a wordpress network. All the contents in my network are user generated. All posts links are now dofollow. I want to change it to nofollow. My site uses plugin for custom fields. I removed the ...
user avatar
  • 3,391
1 vote
1 answer
8k views

How to noindex nofollow custom post type?

I've created a custom post type that displays the individual entries collectively on a page. However, I've found that Google is not only indexing the page, but the individual posts as well. I only ...
user avatar
  • 163
1 vote
4 answers
2k views

A plugin for having rel="nofollow" in posts?

I'd like to make all the links in posts on one of my sites to be with rel="nofollow" on links inside posts. I wasn't able to find a plugin that did the job except for WP-NoExternalLinks. It also ...
user avatar
  • 1,833
1 vote
1 answer
903 views

breadcrumbs & rel="nofollow"

Should a breadcrumbs navigation have links set to rel="nofollow"?
user avatar
  • 49.8k
4 votes
2 answers
3k views

How to add a filter to all widget output

Is there one last filter that is ran over the widgets before they are sent out to the browser? I would like to add a filter that adds rel="nofollow" to all links in all widgets. For instance, I can ...
user avatar
  • 5,996
0 votes
2 answers
898 views

How to add rel="nofollow" to wp_list_pages?

I'd like to use the wp_list_pages as a navigation bar, but I don't want the links to be followed. This is the simple version of the code I'm using <?php wp_list_pages('hierarchical=1&title_li=&...
user avatar
0 votes
3 answers
5k views

Setting up robots.txt with Yoast's Seo plugin

I was looking for a decent robots.txt solution for my wordpress sites and after some searching I found Yoast's SEO plugin that provides a complete SEO solution including indexation. I set it up it to ...
user avatar
  • 487
1 vote
1 answer
191 views

How to add rel nofollow to this?

How can i add rel="nofollow" to this? echo " <a href='"; the_permalink(); echo "' >"."(...)"."</a>";
user avatar
3 votes
1 answer
6k views

Editing the Comment Reply Link

Just found this site via the WP-Hackers List, been using WordPress for years (make a living partially thanks to it) and never stumbled on this site! Posted this on the WP-Hackers list, but didn't ...
user avatar
  • 143
0 votes
1 answer
668 views

Adding rel="nofollow" to external links in posts?

I've tried three plugins to do this, non of them worked (I'm using WP 3.01): http://wordpress.org/extend/plugins/sem-external-links/ http://wordpress.org/extend/plugins/external-nofollow/ http://...
user avatar
  • 1,833