Page 1 of 1
OpenCart Header and Footer
Posted: Fri Nov 07, 2014 6:41 am
by ctsswarehouse
Good morning OpenCart community,
I've been having a look around the cpanel and I have come across many different header.php and footer.php but can't seem to get what I am trying to do to work. I'm basically trying to get this code into my header;
Code: Select all
<a href="https://www.facebook.com/CleaningTradeSalesService" target="_blank"><img
src="http://static.viewbook.com/images/social_icons/facebook_32.png"/></a>
Unfortunately, I have failed every attempt. Any ideas?
Attached is an image of where I want it exactly.
OpenCartHeader.JPG (48.13 KiB) Viewed 19264 times
Note: I don't have that currency widget on my website, It's just an example of where I want my code to display.
EDIT: My OpenCart version is 1.5.5.1
Re: OpenCart Header and Footer
Posted: Fri Nov 07, 2014 4:32 pm
by uksitebuilder
Please advise your OpenCart version
Re: OpenCart Header and Footer
Posted: Fri Nov 07, 2014 11:04 pm
by labeshops
You would need to add that code to your common/header.tpl in the template folder you are using.
Re: OpenCart Header and Footer
Posted: Mon Nov 10, 2014 6:21 am
by ctsswarehouse
uksitebuilder wrote:Please advise your OpenCart version
Sorry, I am new. I should have posted that in my original post. It is version 1.5.5.1
labeshops wrote:You would need to add that code to your common/header.tpl in the template folder you are using.
I'll give it a go and get back to you, I believe I have tried something very similar already.
Is there a particular way to get it to sit where the currency is??
Re: OpenCart Header and Footer
Posted: Mon Nov 10, 2014 10:06 am
by ctsswarehouse
labeshops wrote:You would need to add that code to your common/header.tpl in the template folder you are using.
I've had a look inside header.tpl and I can't decide where it is best to input my code. Not only this but I am unsure on how I'd set it to sit in the position I desire.
Re: OpenCart Header and Footer
Posted: Mon Nov 10, 2014 1:37 pm
by ctsswarehouse
Good afternoon community,
I have solved my problem, having paid attention to the reply of "labeshops" I went and found the correct common/header.tpl directory which for me was "Catalog>View>Theme>YourThemeName>Template>Common>header.tpl"
I applied the code to the section that gave me the best result.
Facebook Header.JPG (31.53 KiB) Viewed 19201 times
This can be marked as solved.
Re: OpenCart Header and Footer
Posted: Mon Nov 10, 2014 8:13 pm
by labeshops
Glad I could help.
Re: OpenCart Header and Footer
Posted: Mon Apr 03, 2023 1:21 am
by laptopmart.ae
Hello All,
I am new in open cart platform, I just create a website with open cart (
https://www.laptopmart.ae ), I want to update my header, there are some meta tag changed logos image tag changes, please help me how to add these changes on it.