XF 2.0 Google Search Console - Missing position field

Betclever

Well-known member
Hi guys,

I have received an mail from Google in order to fix an issue...
Here is the message in question: Google Search Console - Missing position field

Can someone help me with this and what does this mean?

Thx.
 

I believe the relevant code was added in 2.0.9 (around there), so assuming you're upgraded to at least that version make sure your PAGE_CONTAINER is up-to-date.

Here is the part:

Code:
<xf:macro name="crumb" arg-href="!" arg-value="!" arg-position="{{ 0 }}">
    <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
        <a href="{$href}" itemprop="item">
            <span itemprop="name">{$value}</span>
        </a>
        <xf:if is="$position"><meta itemprop="position" content="{$position}" /></xf:if>
    </li>
</xf:macro>

Do I have to remove this part of code?
 
Here is the part:

Code:
<xf:macro name="crumb" arg-href="!" arg-value="!" arg-position="{{ 0 }}">
    <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
        <a href="{$href}" itemprop="item">
            <span itemprop="name">{$value}</span>
        </a>
        <xf:if is="$position"><meta itemprop="position" content="{$position}" /></xf:if>
    </li>
</xf:macro>

Do I have to remove this part of code?

That's the correct code you need inside your style. Make sure that bit is in PAGE_CONTAINER. If you're running a third-party style I'd reach out to them for help if it's not there as well.
 
That's the correct code you need inside your style. Make sure that bit is in PAGE_CONTAINER. If you're running a third-party style I'd reach out to them for help if it's not there as well.

The XF version I use atm is 2.1.1 and the template is apparently up2date.
Very weird...
 
Even if the part of the above code is in PAGE_CONTAINER why do I get this message from Google then?
Can someone tell me how do I fix this for avoiding SEO issues?

Thx.
 
I'll just post this, again.


If you are being told that you have URLs which are failing their structured data tests, then run those URLs through the above tool for more information.

If there are no errors, you can ignore what is in the search console. If there are, it will explain where they are.
 
I'll just post this, again.


If you are being told that you have URLs which are failing their structured data tests, then run those URLs through the above tool for more information.

If there are no errors, you can ignore what is in the search console. If there are, it will explain where they are.

Thanks.
I don't have any EM so why do they send me an email then?
Very weird...

I just want to be sure I will not destroy my SEO...
 
SEO isn't a fragile thing. People will have you believe your entire site's welfare hinges on this almost mythical, paper thin concept called SEO.

Get out of that mind set. Most SEO is the epitome of "micro-optimization" where even "errors" (if they actually exist in the first place) are edge cases that you probably ought to fix, at some point, but even if you don't, nothing will happen.

In this case, it seems, the search console is incorrect (I'd trust the Structured Data Testing Tool more than Search Console at this point).
 
Top Bottom