• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

No Follow WordPress Tag Cloud Widget Links

This code, once added to your child themes functions file, adds rel=”nofollow” to all the tag cloud links generated by the tac cloud widget included in all WordPress installations by default.

The above code uses str_replace which is the correct function to use in this case.

You could also use preg_replace which is generally used to perform a search find and replace for regular expressions however this is not recommended in this case as the default code we need to modify/filter does not contain regular expressions.

Related Tutorials

  • Customize WordPress Tag Cloud Widget Functionality

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags