Instead of the linked option you could just go with something using jQuery. Try adding something like this to your primary theme or plugin javascript file. (Usually something like main.js
.)
jQuery( document ).ready( function($) {
$( 'a[href^="https://google.com"], a[href^="https://yahoo.com"]' ).each( function() {
$( this ).attr( 'rel', 'nofollow' );
} );
} );
For any additional URLs you’d simply keep adding a[href^="https://domain.com"]
in a comma separated format into the selector.
Related Posts:
- How to use wp_rel_nofollow to add nofollow to external links only?
- How to change all external links to “nofollow” but only for Contributor role?
- Remove nofollow from specific internal links
- Prevent “nofollow” from Being Inserted into BBPress Posts
- WordPress is adding rel=”nofollow” and target=”_blank” to internal links in posts and pages
- Get parent page url to show up when it is in child pages
- Why is there a link tag with rel “profile” pointing to gmpg.org?
- How to use wpLink without editor?
- How to print translation supported text with HTML URL
- Is it possible to link to draft pages?
- get_category_link() is returning nothing
- Is there any way to set default for “Insert/Edit Link” to “Open link in new window”?
- How to splice in wp_links links into the loop?
- Is there an easy way to create a links index page?
- How to set all external links to a certain domain to “nofollow”?
- What is the canonical way to link to pages?
- How do I remove or disable “Or link to existing content” in “insert link” dialogue?
- Retrieving all Links from a Post?
- Auto-embed link info from URLs in link post format?
- Generate Random Post Links Somewhere in the post
- Add Link Text Back to Insert/edit link Box
- How to list all external URLs that I have posted on my WordPress blog?
- Plugin that inserts favicon next to links
- Get post / page ID from ACF Link field
- Creating a navigation link to my front-page
- Relative links for performance?
- Dont’t change active Button while I’m listing a category?
- How to change server name on WordPress Installation?
- How do i set the read more link?
- Plugin for wikipedia style references in WP?
- Problem creating an edit link for a custom post type
- After duplicating site to a sub folder, links send user to original site
- Automaticly replace a link with other “new link”
- How to add a WordPress page with multiple picture links?
- Enumerating over a category of links
- Twitter links in widget don’t work?
- Links in nonalphabetic order
- My custom link works only on home page
- Read more link to external webpage
- How to apply default post categories to link manager plugin
- How do I hide the ‘Edit’ link in publshed posts
- Do you use links?
- how do I get rid of the links and all the links related menu items on the admin ui?
- How to set all external links from a certain user to “nofollow”?
- How to deal with internal links in blog while developing new site in WordPress?
- How to remove massive link in WordPress content
- Delete all href attribute in WordPress posts
- Allow insecure embedded content in a SSL secured website
- How to prevent WordPress from abbreviating long slugs?
- Highlight archive link on single.php
- Put password on a wordpress link in a article
- Disable title link in the backend for non-admins
- Add class to all links created by tinyMCE
- How do i remove all Bit.ly shortened links from site?
- how do I turn off whatever causes links to be embedded as URL’s site title
- How to make entire in blog post page linked?
- How to make a random dynamic url?
- WordPress does not show correct page
- Bulk change link to pdf’s
- How can I automatically display the section link on my one-page Elementor website?
- White image when I share my site
- How to track which users click link/button?
- How can I get the url from file uploaded in Media Library
- Getting duplicate homepage links | Even if there is only one page in Dashboard Please Help
- Rotate prefix for external domain links using functions.php?
- How to change the canonical link from a category or taxonomy archive?
- How to mask external download links to be only accessible by logged-in users?
- Content -> Post is easy, but Post -> Content is hard
- how to link local pages with flags in submenu
- Metallex Theme modifies links after saving them
- Get youtube link title in post title
- bloginfo(); outputs wrong urls without https on inner pages
- How can I add a sortable link_updated column to the Link Manager?
- how to display country/region/subject/post reasonably
- Links open when scrolling on touch devices/mobile
- Site migration and how to write internal links with migration in mind
- List pages including both parent and child pages
- Remove all link title attributes
- How do I change the “href” link that corresponds with an “li class” statement?
- Unable to create hyperlink after WordPress updated
- Anchor doesn’t work if it’s given in the url
- Links offset on my page
- Link rewrite to https (NOT URL rewrite)
- random characters on links
- Detect what page was linked-from
- link header to homepage (for wp multisite)
- insert link in wordpress editor greyout whole screen?
- permalink and $_GET
- pictures does not apeare in posts
- remove the ‘page’ URL parameter in previous/next posts link
- Internal linking search box not working – WP 3.2
- Blogroll import/export with categories and descriptions
- WordPress: How to make a subsubdirectory
- External Links Not Working [closed]
- Access the article edit page from the web address bar?
- Link to blogg-page
- Is it posibble to have alink to display all posts on index.php?
- Trying to chance my link style
- I’ve been trying for an hour to remove the underline from links; I don’t understand why something that should be so simple is so difficult [closed]
- gallery link not displaying photos