Post by AllenConquest » Wed May 24, 2017 12:55 am

Hello,

This has probably been answered before, but I couldn't find it searching on the forum (or Google). I created my own custom theme (copied the default one) and started modifying it. I needed to make some CSS changes, but couldn't work out why they were not being applied. Then I looked in the header.tpl file and noticed this:

Code: Select all

<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
So the link to the CSS file is hardcoded as the default one and not the current theme. Is there any reason for this, and if not what is the best way to get it changed?

Cheers,

Allen

New member

Posts

Joined
Tue Sep 06, 2011 9:13 pm

Post by IP_CAM » Wed May 24, 2017 4:16 am

Well, where else did you expext the DEFAULT THEME Stylesheet Link to exist ? :'(
And by all logics, if you created another Theme, then, you have to re-link the Scripts
and Styles related, to logically match the new Theme Sub, as well, to make it work.
Good Luck.
Ernie

I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in Action here: http://www.jti.li/shop/
---
940+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by viethemes » Wed May 24, 2017 10:13 am

You can use my free extension Custom CSS to add your CSS.

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 14 guests