I have changed code on /php/functions.php to this:
function cookielawinfo_inject_cli_script() {
$the_options = cookielawinfo_get_admin_settings();
if ( $the_options['is_on'] == true ) {
// Output the HTML in the footer:
$str = do_shortcode( stripslashes ( $the_options['notify_message'] ) );
$notify_html = '<div class="robots-nocontent" id="' . cookielawinfo_remove_hash( $the_options["notify_div_id"] ) . '"><span>' . $str . '</span></div>';
if ( $the_options['showagain_tab'] === true ) {
$notify_html .= '<div id="' . cookielawinfo_remove_hash( $the_options["showagain_div_id"] ) . '"><span id="cookie_hdr_showagain">' . $the_options["showagain_text"] . '</span></div>';
}
$notify_html = "<!--googleoff: index-->" . $notify_html . "<!--googleon: index-->"; //google
$notify_html = "<!--noindex-->" . $notify_html . "<!--/noindex-->"; //yandex
echo $notify_html;
// Now output the JavaScript:
?>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function() {
cli_show_cookiebar({
settings: '<?php echo cookielawinfo_get_json_settings(); ?>'
});
});
//]]>
</script>
<?php
}
}
Added class and noindex
Maybe is sufficient
for more info: https://en.wikipedia.org/wiki/Noindex
Why version of the plugin are you using and what’s your URL? Have you made any other customisations to the code? Cheers
the version is: 1.5.3
one of site is: http://www.zazys.com
I don’t made other customisation to Cookie Law Info plugin
Thanks
Which search engines are indexing the content and which tools are you using to check? What I’m getting at is are you seeing the results in the results pages (SERPS) or via a tool like Google Webmaster Tools? I don’t have this issue on any of my own sites so any info you have would be helpful.
On the sites affected, have you set up a correct meta description?
I looked up the tags you used and it seems they will work on Google, Yahoo and Yandex:
https://en.wikipedia.org/wiki/Noindex
If this turns out to be a wider issue then I can certainly add this feature once I’ve got more info and done some more research into the best possible solution.
Cheers