Skip to main content
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'}) %}
cmal's 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 ...
alexr's user avatar
  • 628
5 votes

How to handle a single page that is a different language?

Another way you could do this - that wouldn't be sustainable to expand later - is to create two landing pages as singles in Craft CMS. Then, create a new template for wherever you keep your header ...
cherrykoda's user avatar
  • 1,114
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 ...
Steve Holland's 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 ...
Steve Holland's 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 ...
Jalen Davenport's user avatar
  • 3,045
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://...
andrew.welch's user avatar
  • 11.6k
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(...
David Ball's 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 ...
Seth Warburton's 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): ...
andrew.welch's user avatar
  • 11.6k
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 ....
Tim Print's 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 ...
andrew.welch's user avatar
  • 11.6k
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 ...
andrew.welch's user avatar
  • 11.6k
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.
Mark Busnelli Jr's 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.
curious's user avatar
  • 383
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 ...
andrew.welch's user avatar
  • 11.6k
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,...
Jalen Davenport's user avatar
  • 3,045
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 ...
Jalen Davenport's user avatar
  • 3,045
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
andrew.welch's user avatar
  • 11.6k
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) ...
andrew.welch's user avatar
  • 11.6k
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") %}
Jalen Davenport's user avatar
  • 3,045
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,...
andrew.welch's user avatar
  • 11.6k
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#...
andrew.welch's user avatar
  • 11.6k
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 ...
Jalen Davenport's user avatar
  • 3,045
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.-...
andrew.welch's user avatar
  • 11.6k
2 votes

Is it possible to hide certain entries in the Content SEO section of SEO Matic?

A Section only appear in Content SEO if it has public URLs. If it has public URLs, that means that Google and users will be able to find it eventually. There is a setting to disable the sitemap for a ...
andrew.welch's user avatar
  • 11.6k
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 ...
andrew.welch's user avatar
  • 11.6k
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) ...
andrew.welch's user avatar
  • 11.6k
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 ...
Joorren's user avatar
  • 305
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.
Dan Lee's user avatar
  • 1,107

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