optrex Well-known member Jul 29, 2013 #1 Google started to index one of my new projects today, and I couldn't help but notice the cookie warning is prominent in everything. What would be the best way to prevent this from happening? I need the cookie notice, but I dont need it as the description for every forum
Google started to index one of my new projects today, and I couldn't help but notice the cookie warning is prominent in everything. What would be the best way to prevent this from happening? I need the cookie notice, but I dont need it as the description for every forum
JulianD Well-known member Jul 29, 2013 #2 There are several ways to accomplish this. One simple way is using template conditionals. Go to http://xenforo.com/community/resources/conditional-statements.1604/ Look for the search engine conditional. Now edit the template that contains the code for your notification and wrap it up in a negated search engine conditional. I hope I'm being clear enough for you. I'm in my phone and don't have access to the admin panel so I can't give you exact template names or syntax Upvote 0 Downvote
There are several ways to accomplish this. One simple way is using template conditionals. Go to http://xenforo.com/community/resources/conditional-statements.1604/ Look for the search engine conditional. Now edit the template that contains the code for your notification and wrap it up in a negated search engine conditional. I hope I'm being clear enough for you. I'm in my phone and don't have access to the admin panel so I can't give you exact template names or syntax
optrex Well-known member Jul 29, 2013 #3 Thanks, that sort of makes sense, but what conditional would be used to allow it to be seen by guests but not indexed by search engines? Upvote 0 Downvote
Thanks, that sort of makes sense, but what conditional would be used to allow it to be seen by guests but not indexed by search engines?
P Paul B XenForo moderator Staff member Jul 29, 2013 #4 Interestingly I don't see this on my or other sites. Upvote 0 Downvote
Brent W Well-known member Jul 29, 2013 #5 I would guess it has something to do with the age of the forums. Brogan has a much more established forum so Google probably has a better time placing a more accurate description on their SERPs. Upvote 0 Downvote
I would guess it has something to do with the age of the forums. Brogan has a much more established forum so Google probably has a better time placing a more accurate description on their SERPs.
optrex Well-known member Jul 29, 2013 #6 I see it on my current 1.1 site too and that has been running for 2 years Upvote 0 Downvote
P Paul B XenForo moderator Staff member Jul 29, 2013 #7 I'm on 1.2 - updated last week. Upvote 0 Downvote
MattW Well-known member Jul 29, 2013 #8 My main URL displays the cookie notice in the search result (site has been running since 2006) There is code you can use to stop Google from pulling in certain content: <!--googleoff: index--> here will be skipped <!--googleon: index--> Upvote 0 Downvote
My main URL displays the cookie notice in the search result (site has been running since 2006) There is code you can use to stop Google from pulling in certain content: <!--googleoff: index--> here will be skipped <!--googleon: index-->
MattW Well-known member Jul 29, 2013 #9 So what you could do, is edit the template notice_cookies and wrap Code: {xen:phrase this_site_uses_cookies_notice} <a href="{xen:link help/cookies}">{xen:phrase learn_more}</a> in the googleoff code Code: <!--googleoff: index-->{xen:phrase this_site_uses_cookies_notice} <a href="{xen:link help/cookies}">{xen:phrase learn_more}</a><!--googleon: index--> Upvote 0 Downvote
So what you could do, is edit the template notice_cookies and wrap Code: {xen:phrase this_site_uses_cookies_notice} <a href="{xen:link help/cookies}">{xen:phrase learn_more}</a> in the googleoff code Code: <!--googleoff: index-->{xen:phrase this_site_uses_cookies_notice} <a href="{xen:link help/cookies}">{xen:phrase learn_more}</a><!--googleon: index-->