Post by ctsswarehouse » Fri Nov 07, 2014 6:41 am

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

OpenCartHeader.JPG (48.13 KiB) Viewed 19209 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
Last edited by ctsswarehouse on Mon Nov 10, 2014 6:22 am, edited 1 time in total.

Newbie

Posts

Joined
Fri Nov 07, 2014 6:35 am
Location - Australia

Post by uksitebuilder » Fri Nov 07, 2014 4:32 pm

Please advise your OpenCart version

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by labeshops » Fri Nov 07, 2014 11:04 pm

You would need to add that code to your common/header.tpl in the template folder you are using.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by ctsswarehouse » Mon Nov 10, 2014 6:21 am

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??

Newbie

Posts

Joined
Fri Nov 07, 2014 6:35 am
Location - Australia

Post by ctsswarehouse » Mon Nov 10, 2014 10:06 am

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.

Newbie

Posts

Joined
Fri Nov 07, 2014 6:35 am
Location - Australia

Post by ctsswarehouse » Mon Nov 10, 2014 1:37 pm

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

Facebook Header.JPG (31.53 KiB) Viewed 19146 times

This can be marked as solved.

Newbie

Posts

Joined
Fri Nov 07, 2014 6:35 am
Location - Australia

Post by labeshops » Mon Nov 10, 2014 8:13 pm

Glad I could help.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by laptopmart.ae » Mon Apr 03, 2023 1:21 am

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.

Newbie

Posts

Joined
Mon Apr 03, 2023 1:09 am
Who is online

Users browsing this forum: No registered users and 26 guests