/m2-category-image-alt

Magento 2 Custom Category Image Alt

Primary LanguagePHP

SEO Magento 2 Category Image Alt Tag

Set Custom Category Image Alt to catalog category images for SEO purpose.
By default Magento 2 has only these category attributes under Search Engine Optimization.

search_engine_optimization

Installation

  1. Download the extension .zip file and extract the files.
  2. Copy the extension files folder to the {magento2-root-dir}/app/code
  3. Run the following series of command from SSH console of your server:
 php bin/magento maintenance:enable
 rm -rf var/cache/;  rm -rf var/di/;  rm -rf generated/;  rm -rf var/view_preprocessed/;  rm -rf pub/static/*;
 php bin/magento setup:upgrade
 php bin/magento setup:static-content:deploy -f
 php bin/magento cache:flush
 php bin/magento setup:clean
 php bin/magento maintenance:disable
  1. Go to Admin > Catalog > Categories > Select any category which you like to specify a category image alt text.

category_image_alt


Example

sample_earl


Requirements

Magento 2.4.x Community


Changelog

[Version 2.0.0] (2019-10-4)

[Version 2.0.1] - (2022-20-5)

Improved

  • Refactored the custom module for Magento 2.4.x