Magento 2. How to Change Ajax Compare Title

This tutorial provides step-by-step instructions on how to edit the Ajax Compare pop-up title.

 Ajax Compare Title

1. Open your Magento 2 installation folder.

You can access Magento root directory via FTP, SSH or cPanel.

2. Then open theĀ compare-products-top-link.js file which you can find in the app\code\TemplateMonster\AjaxCompare\view\frontend\web\js folder.

3. Find the title tag ( title: ‘Ajax Compare’, ) and replace Ajax Compare with the text you want to use as the title.

Use CTRL + F (CMD+F on Mac OS X) to search for the title: attribute in the source code.

You should have something that looks like this (Products Compare is new title):

Remember to save the file changes, reindex Magento data and clear Magento cache to make the changes appear on the storefront.

4. Refresh your store page and test the result.

The title was successfully changed!

 Ajax Compare Title popup

Useful Tutorials:

Was this helpful?