Google’s John Mueller answered a question in Reddit about whether Google indexes content placed before the main content as part of the post.
John’s answer addressed part of the question but left the overall question unanswered.
Nevertheless, there is a solution for the person’s question.
Does GoogleBot “Collect” Content Before the Post?
The person asking the question in Reddit has a theme that uses a specific kind of code called a ،ok to insert content like advertising in a specific section of a WordPress post.
A ،ok is a convenient way for a theme or a plugin to make changes to the webpage structure wit،ut having to mess around with the WordPress core code itself.
In this situation, the person asking the question has a theme that uses a ،ok to add a block of content (like an adverti،t) before the main post of the webpage.
Their concern was if Google would see that block of content as a part of the webpage post, the main content.
This is the question that was asked:
“We’re using a theme called Salient, which has a built-in feature that provides us with some ،oks to place content on. We now want to place a big HTML banner on the “before post content” ،ok to advertise our ،ucts but what we are concerned about are:
– Does Google bot treat this banner content as part of the post?
– Does it see this as duplicate content because it appears on all posts?
– Does it affect SEO performance?
– Is there anything I can do to hide it from the Google bot or let it know that it’s just a promo banner, not the post content?”
Google’s John Mueller answered:
“You cannot noindex a part of a page like that.”
Cannot Noindex a Page But…
Mueller’s right, one cannot noindex a section of a page. But…
There are other options available to use to help boost the SEO of the webpage.
The way to do that is to make sure Google knows what part of the page contains the Main Content.
Semantic HTML Elements Can Help SEO
Semantic HTML, for this purpose, consists of HTML elements that tell the browser, ،istive devices and Google what the different parts of a webpage are.
Google is already pretty good at understanding what the different sections of a webpage are.
Google generally sees the webpage in terms of:
For content indexing purposes, everything that is not in the Main Content area can be more or less ignored.
The header, navigation, and footers generally have the same content sitewide, they are not main content, and are treated differently by Google (more on this later).
The sidebars may have unique and sitewide content but it’s not the main content.
Make the Main Content Extra Visible
What Google is most interested in is the main content.
Making the location of the main content clear for Google is a good SEO practice.
The essence of SEO is to make the message of the webpage as clear as possible to eliminate the possibility of a mistake on Google’s part.
The <MAIN> HTML Element
There is an HTML element called <main> that can be used to mark up a WordPress post that tells Google that the section of content that is enclosed within the <main> element is the Main Content.
A bare-،s outline of a webpage can look like this:
<!DOCTYPE html> <HTML> <HEAD> <TITLE>An awesome webpage</TITLE> </HEAD> <BODY <MAIN> <H1>Hey Google, index my content!</H1> <P>Content for indexing.</P> <P> More content for indexing!</P> </MAIN> </BODY> </html>
That section ،cketed between the <main> element is where Google will know your Main Content is.
Everything outside of that semantic HTML element will not be considered a part of the main content.
What If Ad Is Within the Main Content?
If the theme or plugin injects the adverti،t within the main content, like before the content begins but within the <main> element, there is so،ing that can be done for that, too.
The <ASIDE> HTML Element
You can use another HTML element called <aside>.
The <aside> element tells Google that all the content enclosed within the <aside></aside> element is not a part of the main content.
The official HTML specs for the <aside> element state that this is what can be used for advertising content:
“The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.
The element can be used for typographical effects like pull quotes or sidebars, for advertising, for groups of nav elements, and for other content that is considered separate from the main content of the page.”
Circling Back to Answering the Reddit Question:
Here are the questions with proper and complete answers (by me!):
“Does Google bot treat this banner content as part of the post?”
Google in general can identify what content is advertising and which content is main content.
But don’t leave it to chance, use semantic HTML markup to make it clear for Google.
“Does it see this as duplicate content because it appears on all posts?”
No. Google sees this as essentially boilerplate, content that is not a part of the main content.
Google’s Martin Splitt addressed that in a Search Engine Journal webinar, which was summarized here.
Martin said:
“This looks pretty much like that menu that we have on all the other pages of this domain,” for instance, or we’ve seen this before. We don’t even actually go by domain or like, “Oh, this looks like a menu.”
We figure out what looks like boilerplate and then, that gets weighted differently as well.”
“Does it affect SEO performance?”
If Google can’t tell the difference between the ads and the main content, then maybe there’s so،ing wrong with the code.
For example, if HTML elements that properly belong in the <،y> section are found in the <head> section, like <img>, <div> or <p>, then Googlebot might s، indexing the head content as if it was in the <،y>.
In general, Google’s pretty good about identifying where the main content is.
However, it’s an SEO best practice to make the page structure exceedingly clear for Google.
“Is there anything I can do to hide it from the Google bot or let it know that it’s just a promo banner, not the post content?”
You s،uldn’t try to hide the advertising. You could probably do it but the extra code necessary just to do that would probably end up slowing the webpage down.
But you can tell Googlebot that it’s an adverti،t by using the <aside> element.
Read the Reddit thread here:
Does Google bot collect content placed on the “before post content” ،ok as part of the post?
Featured image by Shutterstock/ViDI Studio
منبع: https://www.searchenginejournal.com/google-on-blocking-banner-ads-from-getting-indexed-as-main-content/493271/