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 assign a custom link to logo

OpenCart 2.x. How to assign a custom link to logo

Our Support team is ready to present you a new tutorial that shows how to assign a custom link to your website logo in Opencart 2.x.:

opencart_how_to_assign_custom_link_to_logo_1

  1. Please navigate to catalog/view/theme/themeXXX/template/common folder on your server.

  2. Open header.tpl file for editing.

  3. You will need to locate the logo code line. In case you are currently using image logo, please look for the following:

    <a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
    		 

    opencart_how_to_assign_custom_link_to_logo_2

  4. On this line you will need to change <?php echo $home; ?> to your custom link:

    opencart_how_to_assign_custom_link_to_logo_3

  5. Save changes when you are done.

  6. Check the result on your website.

  7. In case you are currently using a text logo, you will need to look for the following line:

    <h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
    		 

    opencart_how_to_assign_custom_link_to_logo_4

  8. On this line you will need to change <?php echo $home; ?> to your custom link:

    opencart_how_to_assign_custom_link_to_logo_5

  9. Save changes to file when you are done.

Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to assign a custom link to logo