Skip to content
Snippets Groups Projects
Commit 04785c55 authored by Brendan Blaine's avatar Brendan Blaine Committed by Neil Drumm
Browse files

Issue #3353474: Prevent search engines/robots from using the announcement banner as a snippet

parent 7d5da17a
No related branches found
No related tags found
1 merge request!28Add data-nosnippet to the banner in the hopes that convinces google's bot to not index the banner
......@@ -30,7 +30,7 @@
<div class="breadbox"><?php print $breadcrumb; ?></div>
<?php if (!empty($page['banner'])) : ?>
<div id="banner">
<div id="banner" data-nosnippet>
<?php print render($page['banner']); ?>
</div>
<?php endif; ?>
......
......@@ -27,7 +27,7 @@
<?php endif; ?>
<?php if (!empty($page['banner'])) : ?>
<div id="banner">
<div id="banner" data-nosnippet>
<?php print render($page['banner']); ?>
</div>
<?php endif; ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment