If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

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

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