Skip to content

Magento 2 extension to override category names

Space48/SeoTitles

Repository files navigation

SeoTitles

Scrutinizer Code Quality Build Status Code Coverage

SeoTitles module for Magento 2

indoor_living___categories___inventory___products___magento_admin

This module adds and extra leyer to override H1 values for categories and products.

Installation

Manually

To install this module copy the code from this repository to app/code/Space48/SeoTitles folder of your Magento 2 instance, you need to run the following commands from the terminal:

  1. bin/magento setup:upgrade

Using Composer

From the terminal execute the following commands:

  1. composer config repositories.space48-seo-titles vcs [email protected]:Space48/SeoTitles.git
  2. composer require "space48/SeoTitles" to install the latest version or "space48/SeoTitles:{module-version}" to install a specific version.
  3. bin/magento setup:upgrade

Using Modman (Good for development)

From the terminal execute the following:

  1. modman init (in case Modman already initialized there)
  2. modman clone [email protected]:Space48/SeoTitles.git
  3. bin/magento setup:upgrade

How to use it

Once installed, go to the Admin Panel -> Products -> Categories -> Select a category, and under Search Engine Optimisation section you will see a field called H1 Override.

How to uninstall

From the terminal execute the following:

bin/magento module:uninstall Space48_SeoTitles

Note: This only works if you have installed the module using composer.

How to test it

Steps

  1. Go to the Admin Panel -> Products -> Categories and select a category, then under Search Engine Optimisation section you will see a field called H1 Override.

  2. Write in there Seo Title Works and save changes. seo_title_test__id__4____categories___inventory___catalog___magento_admin

  3. Check changes in the frontend.

Expected

  • You should see the title of the category has changed.
  • You should see the name of the category in the breadcrumbs has changed.
  • You should see the menu item related to that category has NOT changed. seo_title_test

About

Magento 2 extension to override category names

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages