Page 1 of 1

Custom theme and CSS

Posted: Wed May 24, 2017 12:55 am
by AllenConquest
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

Re: Custom theme and CSS

Posted: Wed May 24, 2017 4:16 am
by IP_CAM
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

Re: Custom theme and CSS

Posted: Wed May 24, 2017 10:13 am
by viethemes
You can use my free extension Custom CSS to add your CSS.