Hide certain meta tag from browser “view source” using $HTTP_USER_AGENT
-
I would like to hide some of the meta tags from using browsers’ “view source” feature, but still allowing robots/crawlers to see the tags.
I had tried this code, but could not get it to work:
<head> <!--#if expr="\"$HTTP_USER_AGENT\" != /Mozilla|MSIE|Opera|Lynx|WebTV|NCSA Mosaic/" --> <meta name="keywords" content="<?php bloginfo('description'); ?>" /> <?php wp_head(); ?> <!--#endif --> </head>Could you advise if there is a proper way to do this?
thx!!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Hide certain meta tag from browser “view source” using $HTTP_USER_AGENT’ is closed to new replies.