[Prestashop help] How to change/edit Meta Tags, Meta Title for Prestashop pages?

The Prestashop platform generates Meta Tags, Meta Title by 2 ways:

  • Static Pages: pagenotfound page, best-salescontact page, Homepage (index), new-products, forgot password, prices-drop, sitemap, address, addresses, login & edit profile(authentication), cart page, discount, order history, login & register (identity), my-account, order-follow, order-slip, order, search, stores, guest-tracking, order-confirmation.
  • Dynamic pages: Meta tags, Meta title automatic generate based structures of entity. They are pages: productcategory, manufacturer, supplier, cms, cms Category.

This post will help you how to modify Metag Tags, Meta Title from Prestashop admin or Prestashop’s Source PHP.

How to change/edit Metag Tags, Meta Title for Static pages?

Step 1: Go to Prestashop Backoffice 1.7 > Shop Parameters > Traffic & SEO, click SEO & URLs tab

In Prestashop 1.6, go to Preferences > SEO & URLs

change-edit-metag-tags-2

Step 2: Click Edit a page and enter your information

  • Page title: It is Meta Title tag like  <title>Something</title>
  • Meta description: In Presrashop website, it display like <meta name=”descriptioncontent=”Something“>
  • Meta keywords: In Presrashop website, it display like <meta name=”keywordscontent=”Something“>
  • Rewritten URL: Change URL of page, example from http://prestashop-demo.com/my-page to http://prestashop-demo.com/new-page

How to change/edit Metag Tags, Meta Title for Product pages?

Go to Catalog > Products, edit a Product > Click SEO tab

change-edit-metag-tags-4

You can change Page title, Meta description, Meta keywords, Rewritten URL at there form

How to change/edit Metag Tags, Meta Title for category, manufacturer, supplier, cms pages?

Step 1: Go to Catalog > category, manufacturer, supplier, cms Manager, click edit a entity.

change-edit-metag-tags-5

You can change Page title, Meta description, Meta keywords, Rewritten URL at there form

How to change/edit Metag Tags, Meta Title from Prestashop’s Source with PHP language?

Step 1: Open PRESTASHOP_ROOT\classes\Meta.php file

Find the method: getMetaTags($idLang, $pageName, $title = ”)

You can view PHP source code that the Prestashop use to generate Meta Tags for a website

change-edit-metag-tags-6

Step 2: you can directory edit any Metag function for pages:

  • Product pagegetProductMetas method
  • Category page: getCategoryMetas method
  • Manufacturer page: getManufacturerMetas method
  • Supplier page: getSupplierMetas method
  • Cms page: getCmsMetas method
  • Cms Category page: getCmsCategoryMetas method
  • Static page: getMetaByPage method

 

Related Articles

2 Comments

  1. Aminvtn March 25, 2020 at 4:08 pm

    Hi

    Thanks for this tutorial. In my PrestaShop 1.6.1.23 at new products/special pages when I go to the next page it says “Shop name – Page 2” which “shop name” is working correctly and showing my shop. But about “page” word in the title, I want to translate it to my language. How can I change the “page” word in meta title?

    I couldn’t find the word in the Meta.php file (I’m not sure where to search for it)

    Thank you in advance

    • Tony January 11, 2021 at 10:08 am

      for your issue:
      Please open a ticket https://taydoapp.com/helpdesk
      and give us your admin + ftp account
      we can check this issue for help you.
      Do not worry, if you need any our support. We are always ready to free work.
      Thanks.

Leave a reply

You must be logged in to post a comment.