Advertisement
hendrajeg

add rel if sponsored

Aug 15th, 2022
1,413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.30 KB | None | 0 0
  1. jQuery(function($) {
  2.     $( document ).ready(function() {
  3.         if ($('body').hasClass('single')) {
  4.             var sponsor = $('.jeg_meta_sponsor')
  5.                 if ( sponsor.length ) {
  6.                     $('.jeg_inner_content a').attr('rel','sponsored')
  7.                 }
  8.         }
  9.     });
  10. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement