This tutorial provides the steps to add rel="nofollow" to the HTML markup of anchor elements (links) output by Social Icons component of Oxygen.

Before:

After:

Here’s How

In your Oxygen Template/editor, add a Code Block component at the end of all others.

PHP & HTML:

<?php
	// echo "hello world!";
?>

JavaScript:

(function($) {
'use strict';

	$('.oxy-social-icons a').attr('rel', 'nofollow');

}(jQuery));

Reference

https://wpdevdesign.com/data-attributes-in-oxygen/

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: