For this tutorial, I will be showing you how to create a banner and add it to your opencart store. For this, I will be using my cPanel file manager. To create my banner I have used picmonkey.com for quickness. So this is my banner and where I want to add it:
First, you need to upload your image using your file manager. To do this you need to find your image folder, the path is public_html/catalog/view/theme/default/image. Now you need to upload your banner to this folder, remember what the name is of the banner is after you uploaded it, mine is untitled.jpg (for simplicity).
The next part you will add to this line of code is the image, <img src="catalog/view/theme/default/image/Untitled.jpg" (change untitled.jpg to what you have named your image).
![]() |
The banner. |
![]() |
Where I want to place the banner. |
First, you need to upload your image using your file manager. To do this you need to find your image folder, the path is public_html/catalog/view/theme/default/image. Now you need to upload your banner to this folder, remember what the name is of the banner is after you uploaded it, mine is untitled.jpg (for simplicity).
After the banner has been uploaded you will need to add it to the store, to do so you need to find header.tlp. The path to this file is public_html/catalog/view/theme/default/template/common/header.tlp, in this file we need to add the image and I will be adding a link to my delivery terms (since the banner is about free shipping).In your header.tlp you will need to scroll to the end of the code, in between the last </nav> and </div> (line 122) you will need to add your new code.
I will break it down into sections but it all needs to be on the same line (line 122).
The first piece of code is <a href="delivery">, this is which page of your store you image will direct to when clicked. Where it says "delivery you will need to use the SEO that you have given your store page, so change it accordingly.
The first piece of code is <a href="delivery">, this is which page of your store you image will direct to when clicked. Where it says "delivery you will need to use the SEO that you have given your store page, so change it accordingly.
![]() |
SEO of the page you want to direct the image too. |
The next part you will add to this line of code is the image, <img src="catalog/view/theme/default/image/Untitled.jpg" (change untitled.jpg to what you have named your image).
Next, you're going to give the image an id so add id="delivery".
Lastly, you will need to add the style of the image, style="max-width:100%;height:auto;"/> </a>.
This section of your code will now look like this: