Questions tagged [plugin-seomatic]
The plugin-seomatic tag has no usage guidance.
56
questions
1
vote
0
answers
48
views
How to edit the schema identity type via twig?
I have a Channel type Section and I set the identity type as an Article in SEOmatic Main Entity of Page (JSON-LD). We are now planning to create entries in that section with different entity type (...
1
vote
1
answer
119
views
SEOmatic & Tags Manager plugin
I'm trying to get SEOmatic meta title & meta description overrides on a tag page that is managed via the Tags plugin by ethercreative. I'm using the automatic render feature of SEOmatic, and have ...
1
vote
2
answers
99
views
How to handle a single page that is a different language?
Our team want to create one or two landing pages that are translated and localized e.g. Spanish and Portuguese
This won't be a full site translation, so it doesn't deserve a subdomain or subfolder, ...
2
votes
1
answer
137
views
Dynamic entries?
My website features music releases. On the homepage, it shows the current week of releases. It also offers the ability to go back to previous weeks and see the releases e.g. mysite.com/new-releases/05-...
1
vote
1
answer
34
views
Outputting Opening Hours in SEOmatic
I could use some help outputting opening hours from SEOmatic's Site Settings/Identity. The docs aren't clear on this, and the example at https://github.com/nystudio107/craft-seomatic/issues/843 doesn'...
1
vote
1
answer
27
views
Error when clicking on a category in admin (related to SEOMatic?)
I get the atatched error when clicking in the admin of my site - it seems to be related to SEO Matic but not sure?
Anybody any idea?
Many thanks
Malcolm
1
vote
2
answers
124
views
Accessing SEOmatic meta via controller action in Element API triggers HTTPForbiddenException
I'm attempting to fetch SEO meta for entries inside of an element API, roughly following the advice in Element API integration
Below is the exact code in my element-api.php:
<?php
use craft\...
1
vote
1
answer
281
views
Incorrect canonical URLs and redirect chains
I have installed SEOMatic. However, I am getting incorrect canonical URLs. Here is an example: https://jenoffvanhulle.com/en/
The URL has a trailing slash, the canonical URL not
A second problem is ...
1
vote
1
answer
417
views
Outputting structured product attributes in JSON-LD code with SEOMatic
My products have a lot of attributes that I would like to serve to Google AMP via JSON-LD. The attributes vary between product types.
How should I do this?
I see there is a file under nystudio107\...
0
votes
0
answers
348
views
Set category's canonical URL on a custom route
Global category content canonical URL pattern seems to set og:url, but not the canonical one. I've tried replacing @web with the address proper without any change. I suspect I've misconfigured ...
0
votes
0
answers
69
views
Paginate and Cache Together and SEOmatic helpers
I am struggling to get this working correctly.
If I keep the element queries outside the cache tag then this naturally stops the cache being broken and so is not a viable option. However, when I put ...
1
vote
1
answer
53
views
SEOmatic page parent?
I was wondering if it is possible to create a SEO Title Source in SEOmatic where the page title is output and then the parent/section page title e.g.:
{entry.title} | {{ entry.parent.title }} | ...
1
vote
1
answer
343
views
Have SEOMatic render a custom SEOMatic field
I've got a few pages on my site that are not content managed.
I don't want to create entries for these pages, but I do want the SEO for these pages content managed.
My solution here has been to set ...
1
vote
1
answer
598
views
How do I control order of output using Seomatic plugin
When I use the {% hook 'seomaticRender' %} tag in my template, I expected that it would output the data in the position where it's located. For example, I have the following in my template:
{% hook '...
1
vote
1
answer
1k
views
Site Headers Showing x-robots-tag: none
I am having issues with search engines picking up my Craft site. I'm seeing x-robots-tag: none when reviewing my site's headers - which is shorthand for "no-index and no-follow".
The following is ...
1
vote
1
answer
90
views
Not triggering SEOMatic on save element
I'm writing a module that loops over lines in a CSV file to save them as entries. For every entry I save with elements->saveElement($element);, SEOMatic will queue a job that regenerates the ...
1
vote
1
answer
410
views
Implement hreflang with multi sites
I currently have multi site config. One site have 2 locales.
My configuration like so:
'example.com' => array(
'siteUrl' => array(
'us_en' => 'https://www.example.com/',
'...
1
vote
1
answer
219
views
Get entry url from primary site (using seomatic)
We're adding a multi-site config to a website.
All sections are being copied over to the new sites from the primary site.
So for example, we now have these two pages:
mysite.com/services/some-...
1
vote
1
answer
239
views
Set Up Route to Template - then variable Entry is undefined
I've got a blog listing channel set up where I'm trying to filter entries listed by the entries field blogAuthors based on url segment.
/articles-and-excerpts/ loads the blog fine
added a route
but ...
1
vote
1
answer
369
views
How to pull an entry's SEOmatic meta tags with Element API?
How do I get the meta tags used in SEOmatic for a specific entry and returning it through the Element API?
Not sure how the PHP code looks like when using SEOmatic's PHP API.
2
votes
2
answers
475
views
How to add multiple performers to event schema with seomatic
I am adding event schema to an entry page. I have offer and date properties working well based on https://nystudio107.com/blog/tips-for-using-seomatic-effectively
This is working for offers
{% if ...
1
vote
1
answer
663
views
SEOMatic: Get SEO Image from a Matrix Field
I'm using a matrix for hero images on my pages, and I'd like to use them as the SEO image in SEOMatic, but it's not available in the settings.
I tried setting the field to "Custom URL" and adding ...
0
votes
0
answers
238
views
SEOmatic passing through variables
In my _layout.html, I render the SEOmatic stuff via
{% hook 'seomaticRender' %}
This works fine for basically all content singles/channels, etc.
Now I have one template /newsletters/index.twig ...
1
vote
1
answer
541
views
Is it possible to hide certain entries in the Content SEO section of SEO Matic?
I would like to "hide" Certain Pages or entries from the Content SEO Section as they are never seen by the end user and are not used in the XML sitemap. Is there a way to do this ?
1
vote
1
answer
238
views
Seomatic - disable tag manager from inside template
I am using Seomatic and i want to conditionally render google tag manager trancking code - or not.
How do I disable it using some Twig template code?
1
vote
1
answer
110
views
Add Section Name to SEOmatic Title Field
I have an index page for a Section which lists out the entries.
As this index template doesn't have a title field associated with it how do I get the Section name in the SEOmatic's SEO Title Source?
0
votes
1
answer
269
views
How can I handle the identical SEOmatic config for multi-sites?
I'm using the amazing SEOmatic plugin in a multi-site config in craft 3.
I have a total of 18 sites and they share a lot of identical data. So I was wondering if it was possible to export the ...
1
vote
1
answer
101
views
How to merge SEOmatic object in Craft 3?
I'm using SEOmatic plugin in craft cms 3 and I need to set the seoTitle in my template but can't figure out how to do it...
I know that in Craft 2, it was possible to merge the seomatic variable. I ...
2
votes
1
answer
53
views
SEOmatic Errors in Debug - Can they be fixed?
SEOmatic throws up a lot of errors in the debug. Most of the errors seem to be with fields I haven't filled in as they are not required like Facebook App ID etc.
Is this an issue or do I just ignore? ...
1
vote
2
answers
897
views
Append custom sitemap to sitemap index
I have a custom generated sitemap which I'd like to append to my SEOmatic sitemap.xml file.
Is this possible?
I suppose the simple alternative would be to just add an extra sitemap to Google Search ...
2
votes
1
answer
320
views
ImageOptomize and SEOmatic - Is Image Variant Required for Social and SEO images?
Do ImageOptomize and SEOmatic work together - or to be more specific do I need an image variant for the social and SEO images defined in SEOmatic?
I have been importing content into a News entry.
I ...
1
vote
1
answer
204
views
SEOmatic and Global Variables
We have a Craft site with nearly 800 entries. For SEO purposes we need to change the page title and page (SEO) description for each entry, a laborious task to say the least.
Is there a way to have, ...
0
votes
1
answer
147
views
Craft SeoMatic GTM <noscript> disable on 404 pages
I want to disable google tag manager on 404 templates, I am able to add the additional condition for the script "Google Tag Manager Settings"
It has stopped GTM script code, but <noscript> ...
3
votes
0
answers
488
views
JsonLD & Schema
What is the best way to use Json-LD schema in the templates for Craft 3? I would like to dynamically load parts of the info. I know about the SEOmatic plugin but looking for a way to do it on my own.
1
vote
1
answer
562
views
404 page title SEOmatic
404 page doesn't have a title. It shows "| Sitename" in my case.
I'm using Craft 3 with the SEOmatic plugin and would like to set the title in the 404 template.
{% set seomaticMeta = seomaticMeta | ...
1
vote
1
answer
209
views
Dynamic link to same entry but in alternate language
I'm working on a multilingual website (Spanish and English, default is Spanish). I'm using the SEOmatic plugin, and I see that it generates this code:
<link rel="alternate" hreflang="es" href="...
1
vote
1
answer
356
views
Customization Facebook OpenGraph Title
I am using SEOmatic on Craft 2 and want to give the user the ability to customize the Title field of Facebook's OpenGraph Title. For example, instead of showing just the Title, add a "How To" before ...
1
vote
1
answer
100
views
What are Search Targets and Search Query Input in seomatic?
I am not sure this is the right place to ask this question but I really need to know it, but I couldn't ask it on the plugin's Github as this is not an issue. I am new on Craft CMS and my client need ...
1
vote
1
answer
410
views
Re-Saving neccessary?
I have switched the field of the SEOmatic plugin to translateable. All the SEO Titles are taken from the entry title. After changing to translateable I can see the translated fields in the SEO Title ...
1
vote
2
answers
770
views
Yoast-like real-time content analysis
Is there an equivalent to Yoast's real-time content analysis for Craft?
I've looked at SEOmatic and Sprout, but neither of them have the handy traffic light system that Yoast has on WP (despite both ...
2
votes
1
answer
149
views
SEOmatic not merging fields from a related entry
I have a pretty specific set up: posts get created via rss feeds and images are not attached to the specific posts, so instead in the entry template I use an image from a related entry. When I try to ...
1
vote
2
answers
1k
views
Can I add a custom canonical URL to a page if also using SEOmatic?
SEOmatic puts a canonical on every page. But some pages I need to be able to add a custom canonical, but not sure how to overide SEOmatic's otherwise there will be two.
1
vote
1
answer
124
views
Edit meta property value in Open Graph meta tag
I would like to implement Pinterest Product Pin for my products. I need to update og:xxx values. Here is how i done:
{% set og = seomaticMeta.og %}
{% set og = og | merge({'type': "product", 'product:...
0
votes
1
answer
58
views
Display query string SEOmatic
I'm using the SEOmatic plugin and would like the query string in my URL to display with the site's title. Is this possible to add with the plugin?
1
vote
0
answers
71
views
Import data into SEOmatic
I'm trying to import data with the import plugin into entries with a SEOmatic field. How is structured this field and how can I insert the data?
2
votes
0
answers
187
views
Default values of new fields for existing entries
I added a new SEOmatic field to a section that has around 500 entries. As for any other new fields that you add to a section, the default values are only applied on the entries if you open and save ...
1
vote
2
answers
183
views
extractSummary twig filter is unknown
I'm trying to set a fallback description in case there is none. This is the bit of code:
{% if seomaticMeta.seoDescription is empty and entry is defined %}
{% set fallbackDescription = "" %}
{...
1
vote
1
answer
700
views
How to remove siteName from the og:title tag with SEOMatic
SEOMatic automatically adds the siteName after your title tag, which seems smart, but I don't think it's necessary for social sharing. Is it possible to tweak the og:title and twitter:title tag output ...
3
votes
1
answer
692
views
SEOmatic plugin override global title in individual template
I have problem whereby I can't override a single page's SEO by using a field, because the page has too many table rows in the database, due to being very field heavy. Don't ask.
So I'd like to ...
1
vote
2
answers
304
views
Seomatic - show only global site title
Right now my homepage title looks like:
Home page - SiteName
But i want it to look like this:
SiteName
How do i do this?