On wp-cms I have lines in contact.php:

< ?php if($facebook_url) { ?><li class="foot-facebook"><a href="<?php echo facebook_url; ?> ">Facebook</a></li><?php } ?> 

In CSS (style.css):

 .foot-twitter a { background:url(images/twitter.png) no-repeat; } .foot-facebook a { background:url(images/facebook.png) no-repeat; } 

The question is how to close the link from indexing that is set through the theme settings, Where to and what to insert?

    1 answer 1

     <a href="..." rel="noindex,nofollow">some text</a> 
    • Thanks, of course, only the link via php is set and this setting does not work - mr_E6aJIo
    • Who cares? Will it be <a rel="noindex,nofollow" href="<? Php echo facebook_url??> "> Facebook </a> </ li> <? php}? > - Dem
    • You can do this by <a onclick = "location.href = '<? Php echo facebook_url;?>'"> Facebook </ a> Then you need to add "cursor: pointer" to css - Dem
    • I tried, the link is indexed by the data "see page code" and cy-pr. In places where there is no php works. I thought maybe this rel can be pushed into css? - mr_E6aJIo
    • one
      Rel and css are completely different things. - Dem