Featured templates

OpenCart 2.x. How to edit the text on home page

Alice Weasley June 7, 2016
Rating: 5.0. From 2 votes.
Please wait...

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:

OpenCart 2.x. How to manage translations

OpenCart 2.x. How to manage slider

OpenCart 2.x. How to manage banners

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.

  1. 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.

  2. 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';
  3. 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.

  4. Please, refer to this tutorial on how to change the footer links text: OpenCart 2.x. How to edit footer links and copyright notification.

  5. 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++.

  6. 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
Best OpenCart Themes
This entry was posted in OpenCart Tutorials and tagged home page, Opencart2, text. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Live Chat
We help you to choose the right product.