5 votes

Reverse the seomatic title and site name for a specific template

The following works (but is undocumented): {% set seomaticSiteMeta = seomaticSiteMeta | merge({'siteSeoTitlePlacement': 'before'}) %}
user avatar
  • 815
5 votes

SEOMATIC v1.1.45 install

To update plugins like SeoMatic, just download the latest (either clicking on the direct download link from the /admin/updates/ page in your admin area or from github). Then you just then need to ...
user avatar
  • 478
4 votes

SEOmatic plugin override global title in individual template

Are you using the SEOMatic Meta fieldType? What I do is create a field of this field type and assign it to the entry type you're dealing with. Within this field, there are all sorts of values you ...
user avatar
4 votes
Accepted

SEOMatic using the pages title

Have you created a new SEOMatic Meta fieldType? I don't know whether there is another/better way of doing it, but what I do is create a new field of type SEOMatic Meta, then assign this field to the ...
user avatar
4 votes
Accepted

ImageOptomize and SEOmatic - Is Image Variant Required for Social and SEO images?

I've used SEOmatic and ImageOptimize together before and never had those issues. SEOmatic should care less about the presence of the ImageOptimize field on the asset and you definitely don't need to ...
user avatar
3 votes
Accepted

404 page title SEOmatic

So it looks like you're using the old syntax for SEOmatic 1.x for Craft 2.x; here's how you do the same thing in SEOmatic for Craft 3: {% do seomatic.meta.seoTitle("Some Title") %} c.f.: https://...
user avatar
3 votes

Can I add a custom canonical URL to a page if also using SEOmatic?

Robin's answer above is valid, but I have managed to create an override in my main _layout template like this: {% if entry.canonicalUrl|length > 0 %} {% set seomaticMeta = seomaticMeta | merge(...
user avatar
3 votes

Website not indexing

You need to tell Google that you have a new site or the best SEO in the world won't matter a jot; Google has no idea your site exists until you tell it. There are 4 essential steps to getting your ...
user avatar
3 votes
Accepted

Can SEOmatic pull from a Category Field to fill Entry - SEO Keywords or SEO Description?

Currently, no, SEOmatic cannot pull from a category field. You have two options: Use the Preparse Field, and have that set to be whatever you want it to be (pull output from a Category, whatever): ...
user avatar
3 votes

How to add multiple performers to event schema with seomatic

I hadn't seen those examples but it is bookmarked now. I've adapted your example as below and it's all working. Thanks @andrew.welch {% set performersArray = [] %} {% for block in entry.performers ....
user avatar
  • 343
3 votes
Accepted

How to pull an entry's SEOmatic meta tags with Element API?

SEOmatic has some functions that it uses for its controller endpoints for returning metadata for SPAs and the like: SEOmatic headless SPA APIs We can leverage these for our own purposes in an ...
user avatar
3 votes
Accepted

How do I control order of output using Seomatic plugin

I this for the Craft 2 version of SEOmatic, or the Craft 3 version of SEOmatic? The Craft 3 version does not have a {% hook 'seomaticRender' %} tag at all. Instead, the metadata is automatically ...
user avatar
2 votes

SEOmatic - Set the SEO tags based off of a category?

Absolutely. Just create those fields then assign them to your categories under field layout just like you would do for your sections.
user avatar
2 votes

SEOMATIC v1.1.45 install

Craft is going to have a better update system in a version 3. With Seomatic you can also be able to update via composer. As far as I know.
user avatar
  • 373
2 votes
Accepted

How to remove siteName from the og:title tag with SEOMatic

Yes, it's definitely possible to do that, but you'll need to use Twig as per: https://github.com/nystudio107/seomatic/wiki/10.-Dynamic-Twig-SEO-Meta However, you might not want to do that. Sometimes ...
user avatar
2 votes

What are Search Targets and Search Query Input in seomatic?

This has to do with Google Structured Data and how your site appears in search results. If you use these fields, your site will show a custom search box in Google Search results, like this: Basically,...
user avatar
2 votes

Re-Saving neccessary?

I'm not entirely sure why you need to resave all the entries but I do know how you can do it quickly and easily. I'd recommend using the Walk plugin by Michael Rog to do this. The plugin is pretty ...
user avatar
2 votes

SEOmatic not merging fields from a related entry

Make sure you're not doing this inside of a {% block %} or you will run into Twig Processing Order / Scoping issues. There are some good examples of doing that here: Dynamic Twig SEO Meta
user avatar
2 votes
Accepted

Add Section Name to SEOmatic Title Field

So you can do this via Twig as discussed here: https://github.com/nystudio107/craft-seomatic#twig-templating ...but you can also just make an Single for your Index page (this is what I usually do) ...
user avatar
2 votes
Accepted

How to merge SEOmatic object in Craft 3?

Based on the SEOmatic docs, something like this should do the trick nicely: {% do seomatic.meta.seoTitle("my title") %}
user avatar
2 votes
Accepted

SEOmatic Errors in Debug - Can they be fixed?

These errors will only appear with devMode on, and they are intended to help you diagnose potential problems with the meta tags and other information that you are rendering. These are all soft errors,...
user avatar
2 votes
Accepted

Append custom sitemap to sitemap index

This has been added in SEOmatic 3.1.36 as per this release announcement tweet You can do it via the GUI in SEOmatic -> Site Settings -> Sitemap: https://github.com/nystudio107/craft-seomatic#...
user avatar
2 votes

Append custom sitemap to sitemap index

This is actually pretty simple... If you navigate to SEOmatic → Site Settings → Miscellaneous, you'll see a table at the bottom of the page where you can input custom sitemap urls. Once you add a ...
user avatar
2 votes
Accepted

Dynamic link to same entry but in alternate language

Both SEOmatic for Craft 2 and SEOmatic for Craft 3 have built-in functions to give you these URLs. I'm not sure which you are using so... For Craft 2: https://github.com/nystudio107/seomatic/wiki/15.-...
user avatar
2 votes
Accepted

How to add multiple performers to event schema with seomatic

Have you checked out some of the examples here? Annotated JSON-LD Structured Data Examples -- specifically the devMode.fm Episode Page example shows adding an array of "actors" and "mentions" to the ...
user avatar
2 votes
Accepted

Set Up Route to Template - then variable Entry is undefined

Variables like entry are only auto-injected for routes that match the Section's Site Settings routes: If you're using custom routes, they won't match, and you'll need to set entry (or whatever) ...
user avatar
2 votes
Accepted

Not triggering SEOMatic on save element

By setting the regenerateSitemapsAutomatically to false, SEOMatic won't regenerate a sitemap for every entry saved. At the end of the job, I set it back to true and save the first element inside of ...
user avatar
  • 195
2 votes

Site Headers Showing x-robots-tag: none

Solved There is an environment override in SEOmatic's settings. This was set to local instead of live.
user avatar
  • 1,107
2 votes
Accepted

Have SEOMatic render a custom SEOMatic field

So the default global settings for SEOmatic should definitely be applied to pages that don't have corresponding entries in the CMS. That's what the global defaults do. By far the easiest way to do ...
user avatar
2 votes
Accepted

SEOmatic page parent?

Yep, you should definitely be able to do what you want. What I do is I test the code in the actual Twig template used to display the page, and then once I have it working, I paste it into the ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible