solved Adding CSS Page

Dazed
Dazed
@dazed
8 years ago
1,022 posts
How do you add a new css page into a skin? For example. Let's say I have some items in ProJam (jrFoxyCart.css) that I want to bring over the css page into Audio Pro. I know I can copy the content to the skin css page but I would rather create a new css page. I see that this is called from meta.tpl but I am not following the logic.

So how would I add jrFoxyCart.css to Audio Pro?

Thanks


updated by @dazed: 03/28/17 11:21:37PM
gary.moncrieff
gary.moncrieff
@garymoncrieff
8 years ago
865 posts
Look in the skins include.php file, you will see the skin_init function, this is the area where all the css files are registered, add yours in here, remember to run an integrity check to let the skin know it has a new css file to reference.
updated by @garymoncrieff: 12/21/16 12:59:11PM
Dazed
Dazed
@dazed
8 years ago
1,022 posts
excellent.

Thanks :)
brian
@brian
8 years ago
10,148 posts
derrickhand300:
only it my understanding that you want to add it TO THE BOTTOM of the list in the skin_init function because the css at the bottom of the list overrides the css listed above it

Yep - this is correct - the CSS is processed in order, from top to bottom, so the bottom is good :)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net