Wordpress HTML Quick Question Regarding NoFollow!

2 replies
  • WEB DESIGN
  • |
This is my site: Daily-Deal-Sites.net

This is the HTML for the "Visit Website" buttons underneath each review:

<td width="170" valign="bottom" align="center"><a href="links/<?php echo get_the_title($pid);?>" id="visit_site" rel="bookmark" onClick="javascript:window.open('<?php bloginfo('template_directory'); ?>/links/?product=<?php echo $pid;?>'); return false;" title="<?php echo get_bloginfo('wpurl').'/links/'.get_the_title($pid);?>" style="color:#FFF;">Visit website</a></td>

I'd like to add rel="nofollow" to this backend HTML so all of the Visit Website buttons are nofollow. Where would I put this?

Thank you!

Ross
#html #nofollow #question #quick #wordpress
  • Profile picture of the author Tomos Wyn
    You'd simply add the rel="nofollow" to the anchor tag, like so:

    HTML Code:
    <td width="170" valign="bottom" align="center"><a href="links/<?php echo get_the_title();?>" rel="nofollow" id="visit_site" rel="bookmark" onClick="javascript:window.open('<?php bloginfo('template_directory'); ?>/links/?product=<?php echo ;?>'); return false;" title="<?php echo get_bloginfo('wpurl').'/links/'.get_the_title();?>" style="color:#FFF;">Visit website</a></td>
    {{ DiscussionBoard.errors[4838382].message }}
  • Profile picture of the author Ross Cohen
    Many thanks!
    {{ DiscussionBoard.errors[4838411].message }}

Trending Topics