<p>The following works (but is undocumented):</p>

<p><code>{% set seomaticSiteMeta = seomaticSiteMeta | merge({'siteSeoTitlePlacement': 'before'}) %}</code></p>

CC BY-SA 3.0
2016-12-15T16:41:30.183Z
2016-12-15T16:41:30.183Z
cmal
<p>Let's say my seomatic <code>Site SEO Name</code> = <code>My Site</code> and my <code>Site SEO Title</code> = <code>A Wonderful Website</code></p>

<p>With the default values for seomatic's <code>Site SEO Name Placement</code> and <code>Site SEO Name Separator</code>, this will output the following title:</p>

<p><code>&lt;title&gt;A Wonderful Website | My Site&lt;/title&gt;</code></p>

<p>This makes sense for the majority of pages on my site, where by setting a custom title for the page I'll get something like <code>About Us | My Site</code></p>

<p>But on the homepage, I actually want to swap the order of these, so that the title becomes:</p>

<p><code>&lt;title&gt;My Site | A Wonderful Website&lt;/title&gt;</code></p>

<p>This seems like a fairly common thing to do, but I can't seem to find a way to trick seomatic into allowing this without setting <code>Site SEO Name Placement</code> to <code>None</code> (which I don't want to do because the default value works well on all other pages).</p>

<p>Even trying to manually set the entire title won't work, because it will insist on adding the <code>Site SEO Name</code> to the end:</p>

<p><code>{% set seomaticMeta = seomaticMeta | merge({ seoTitle: 'My Site | A Wonderful Website' }) %}</code></p>

<p>Any way around this?</p>

<plugin-seomatic>
Reverse the seomatic title and site name for a specific template
# Reverse the seomatic title and site name for a specific template

(Asked by: username_0 on 2016-12-13)

Let's say my seomatic `Site SEO Name` = `My Site` and my `Site SEO Title` = `A Wonderful Website`

With the default values for seomatic's `Site SEO Name Placement` and `Site SEO Name Separator`, this will output the following title:

`A Wonderful Website | My Site`

This makes sense for the majority of pages on my site, where by setting a custom title for the page I'll get something like `About Us | My Site`

But on the homepage, I actually want to swap the order of these, so that the title becomes:

`My Site | A Wonderful Website`

This seems like a fairly common thing to do, but I can't seem to find a way to trick seomatic into allowing this without setting `Site SEO Name Placement` to `None` (which I don't want to do because the default value works well on all other pages).

Even trying to manually set the entire title won't work, because it will insist on adding the `Site SEO Name` to the end:

`{% set seomaticMeta = seomaticMeta | merge({ seoTitle: 'My Site | A Wonderful Website' }) %}`

Any way around this?

**Tags:** plugin-seomatic

---

## 1 answers

### Answer by username_0 on 2016-12-15. Score: 5

The following works (but is undocumented):

`{% set seomaticSiteMeta = seomaticSiteMeta | merge({'siteSeoTitlePlacement': 'before'}) %}`


---

