You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
I'm running the latest version of SEOmatic and trying to render my own template, but on fields that you state should start with "seomatic" or "seomaticIdentity" it just outputs an error. Even if I do a conditional to check if something is in that particular field.
I did change the "seomatic" bit to "seomaticMeta" and it worked for the Open Graph stuff, but then Twitter data messed up.
Also - The reason I'm rendering this template is because I don't want all the meta and options outputted in the default template. It would be good if we could turn features we wanted on and off within the plugin so we don't need to create bespoke templates. Just an idea!
The text was updated successfully, but these errors were encountered:
What exactly is it that you do not want to be outputted? Except in very unusual circumstances, there shouldn't be a reason to use a custom template.
Anyway, if you want to do so, just make a copy of the craft/plugins/seomatic/templates/_seo_meta.twig template into your craft/templates/ folder and change it as you see fit.
Things like Google Analytics and Humans.txt I don't want in there really, and a few other little tags because we manage these separately through other ways or just generally don't need them in there. (I'm a bit OCD with clean looking code!)
Will take a look at that template! Thanks for the amazingly quick response
I'm running the latest version of SEOmatic and trying to render my own template, but on fields that you state should start with "seomatic" or "seomaticIdentity" it just outputs an error. Even if I do a conditional to check if something is in that particular field.
e.g.
<meta property="og:site_name" content="{{ seomatic.og.site_name }}">
Just throws the error:
I did change the "seomatic" bit to "seomaticMeta" and it worked for the Open Graph stuff, but then Twitter data messed up.
Also - The reason I'm rendering this template is because I don't want all the meta and options outputted in the default template. It would be good if we could turn features we wanted on and off within the plugin so we don't need to create bespoke templates. Just an idea!
The text was updated successfully, but these errors were encountered: