- Web templates
- E-commerce Templates
- Loaded Commerce
- E-Commerce Comparison
- E-commerce Comparison: Payment and Shipping methods
- E-commerce templates compatibility table
- CMS & Blog Templates
- CMS Comparison
- CMS templates versions compatibility
- Facebook Templates
- Website Builders
OpenCart 2.x. How to edit the text on home page
June 7, 2016
This tutorial shows how to edit the home page text in OpenCart 2.x.
The slider, banners, products and the categories data will be edited in the corresponding sections. See these tutorials for more details:
Rest of the text is mostly set in the english.php or default.php file in the catalog/language/desired_language/ folder.
NOTE: We strongly recommend to back up the file before editing it.
In order to edit the Featured title, open the system\modification\catalog\language\desired_language\module\featured.php file and locate this line:
$_['heading_title'] = 'Featured';
Change the text only between the single quotes so it looks like this and save the changes:
$_['heading_title'] = 'New text';
If the selected language folder does not have this file, copy it from catalog\language\english\module and set the needed text.
All the modules titles will be edited in the appropriate module file likewise.
To change the Add to cart, Add to Wish List and Compare this Product text, open catalog/language/desired_language/default.php, locate these lines and edit the text:
$_['button_cart'] = 'Add to Cart'; $_['button_wishlist'] = 'Add to Wish List'; $_['button_compare'] = 'Compare this Product';
For the Quick view button text editing, open the system\modification\catalog\language\desired_language\module\featured.php and replace the text between the single quotes with yours:
$_['text_quick'] = 'Quick View';
If the Quick view button appears in the new or specials block, the text will be set in system\modification\catalog\language\desired_language\module\latest.php or system\modification\catalog\language\desired_language\module\special.php file respectively.
Please, refer to this tutorial on how to change the footer links text: OpenCart 2.x. How to edit footer links and copyright notification.
In case some of the titles were not listed in this tutorial, you can always use the Find in files Notepad++ feature to locate the needed file for the text constant editing. It is described in this tutorial: How to use the “Find in files” feature in Notepad++.
When all the necessary changes are done, refresh the site to see the changes.
Feel free to check the detailed video tutorial below:OpenCart 2.x. How to edit the text on home page