XF 2.2 Stars rating on the google snippet

@bzcomputers
So in line 15, just change it to "@type": "Course", if my resources are online courses?
Is that the only thing done to get it to work on google?
I tried the rich result test but it ALWAYS timed out. Not sure if the source code is buggy

because template PAGE_CONTAINER contains data-app="public"
you can delete this line from PAGE_CONTAINER and check from https://search.google.com/test/rich-results
 
this is a feature google
you can make condition in PAGE_CONTAINER for check UserAgent Google
like this:
Code:
<xf:if is="contains($xf.request.getUserAgent(), 'google')">
...

...
<xf:else />
...
data-app="public"
...
</xf:if>
google robot will be get code without data-app="public"
and google service will be correct work

but you also need to make correct microdata code in xfrm_resource_view
i make it two days ago and already have stars in SERP

sorry for my bad english, i'm russian
good luck )
 
Media Gallery uses the "MediaObject" type so it does not have any schema issues at this time and will produce enhanced search results within Google search.
I'm not sure that's the case, since I'm getting the same error on a member album in xfmg... I tried making the changes described here (not sure I did it exactly right) but it didn't seem to take. I simply added the microdata and then ensured the data-app public line does not show in page container as well (for google).
1611516845129.png
 
Top Bottom