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

Comments

You need to be logged in to view and post comments.
Not a member yet? Join here.
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: