Skip to main content
Topic: How to add a new css file into theme ? (Read 2564 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to add a new css file into theme ?

I have a custom.css file ( 3rd party ) which I need to include in Silk theme. I have custom_silk.css there already. How can I add the new style sheet into the template. And to which template should I add ?

Re: How to add a new css file into theme ?

Reply #1

Code: [Select]
<link rel="stylesheet" href="path_to_css($themedir and then subfolder)/custom_silk.css" type="text/css">
And into index.template.php, in the head section ;)
~ SimplePortal Support Team ~

Re: How to add a new css file into theme ?

Reply #2

Thank you @Flavio93Zena

Re: How to add a new css file into theme ?

Reply #3

It's almost the same as adding a new js file:
Code: [Select]
loadCSSFile('filename.css');
in template_init. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: How to add a new css file into theme ?

Reply #4

:o ?
~ SimplePortal Support Team ~

Re: How to add a new css file into theme ?

Reply #5

@Flavio93Zena , @Spuds  suggested me that way of adding css file into theme. It worked as well. Yours, I guess is an alternative way.

 

Re: How to add a new css file into theme ?

Reply #6

Yeah mine is old school... I guess those crazy guys created new ways to add stuff ;D Nice one! Glad it was working though ahah
~ SimplePortal Support Team ~