Post by willopencart » Thu Apr 27, 2017 9:49 pm

Hi guys,
I am trying to add some code into the head section under "catalog/view/theme/default/template/common/header.tpl" but it never shows?
Even if I dup the title tag, save it and upload it, it never shows that change?
I am sure I am uploading the new changes.

Is that the right place to edit the head code?
Thanks guys
Will.

New member

Posts

Joined
Sat Jan 21, 2017 8:00 am

Post by uksitebuilder » Thu Apr 27, 2017 10:12 pm

Correct place as long as you are using the default theme in your store.

You should also refresh your modifications in your admin - Extension - Modifications section, as an ocmod may have previously modified that file, leaving an override of it in system/storage/modification

A refresh will update that to include your edits

User avatar
Guru Member

Posts

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

Post by willopencart » Thu Apr 27, 2017 11:57 pm

Thanks pal, it worked, "refresh your modifications in your admin - Extension - Modifications section"
Cheers!
Will.

New member

Posts

Joined
Sat Jan 21, 2017 8:00 am

Post by viethemes » Fri Apr 28, 2017 9:58 pm

You may like my extension Custom JavaScript to add code in the header. Your change will be not lost when you upgrade OpenCart.

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm

Who is online

Users browsing this forum: No registered users and 203 guests