How to modify default meta description, title, and keywords in Magento 2

The default description, default title, and default keywords input fields in Magneto administration used to create SEO issues for store owners ever since version 1.X of Magento. Magento versions 2.X are no exception to this issue.

Why is this an issue?

The SEO best practice for meta descriptions is to have a unique meta description for each URL on your website summarizing the content of that exact URL. When dealing with extremely large data sets it’s usually impossible to write one for every URL so online stores resort to writing a unique one just for category pages, CMS pages, and some very important product pages and leave the rest of them blank.

The issue is, when a custom meta description is left blank in Magento (and in Magento 2), the system defaults to default meta description values. For this reason you’ll see the following in source code:

<meta name="description" content="Default Description"/>
<meta name="keywords" content="Magento, Varien, E-commerce"/>

Clearly, this is far from ideal. You most likely don’t want your description to say “Default Description”, your keywords to say “Magento, Varien, E-commerce”, or your title to say “Magento Enterprise Edition”. It would be much better if default meta description was left blank so search engines can (when not provided with a unique one) create a snippet on their own from the content of the page.

Meta keywords are not used at all so those should be left blank as well.

How to change default meta description, default title, and default meta keywords in Magento 2.X?

In Magento 1.X, you used to find this setting under “System > Configuration > General > Design > HTML Head“.

If you’re used to this like me, you were surprised to see this was removed from Magento 2.X.

But I have good news for you. You don’t need to bug your developers to remove the default values from the database, the interface is not really removed, it’s just relocated.

Navigate to very logical (*sarcasm*) location in Magento 2.X admin: “Content > Design > Configuration

Magento 2 default description and default keywords admin interface location

In there choose a store scope for which defaults you’ll be editing and click “Edit”.

Scroll down till HTML Head section and viola, here’s where you can delete/edit those.

Default description, title, keywords in Magento2

Once again, our best practice advice from the SEO perspective would be to leave description and keywords blank. The title can either be left blank or changed to your brand name.

Related Inchoo Services

You made it all the way down here so you must have enjoyed this post! You may also like:

Implement search intent keywords for better eCommerce results Bruno Mitrovic
, | 0

Implement search intent keywords for better eCommerce results

SEO Checklist for Magento 2 Migration Andreja Cicak
, | 1

SEO Checklist for Magento 2 Migration

The importance of product photography in eCommerce  Josipa Bjelobrk
, | 6

The importance of product photography in eCommerce 

7 comments

  1. Hello,
    This is not correct 100%, I am working on Magento 2 CE site.
    I did edit title, Meta description and meta keywords while I go to view source page noting had changed.
    I did try so many times. ADMIN > CONTENT > DESIGN CONFIGURATION > I choose the very top website global.
    I have changed on Head Default Page Title , Default Meta Description and Default Meta Keywords; I did entered on text boxes. Save Configuration nothing happening. I repet the same procedure to the next Main website and English as well. Same bug.

    Go to codoil.com > view source
    ===============================================================================

    COD Oil – Heating Oil On Demand
    ===========================================================================
    key words are all wrong and the repeat content too.
    Thoughts?
    Is that on the xml of default magento page? Layout ???

    JB

  2. Nice Article. this article solve my confusion about Title and Meta description in magnto platform. but I didn’t get understand you said,”SEO perspective would be to leave description and keywords blank. The title can either be left blank or changed to your brand name.” can You please elabrate this one.

  3. Great article, but my question is. Is there a way to create a ‘simple’ module that easily echo’s the {{product_name}} and {{store_name}} of the category- and product page.. so i can use hem inside the ‘default site description’

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.

Tell us about your project

Drop us a line. We'd love to know more about your project.