solved CSS files - which to choose

joanna
@joanna
8 years ago
88 posts
Hi all,
I know that for some of you my problem is stupid, but I hope you'll try to help me.

I want to create some buttons on our site, so, I thought about adding additional CSS code (javascript is for a while over my head). And I want this code to be site-wide. But each time I check files in the server, I really struggling which one should I choose.

I know I may check file by file and check whether I found the proper file. But, I also struggling that I may destroy something on the site.

I'm hesitating between html.css, index.css, page.css, site.css, skin.css.
Or maybe I should choose a totally different file.

Any idea?

Thanks in advance for your help.

Joanna
updated by @joanna: 02/10/17 05:18:06PM
brian
@brian
8 years ago
10,148 posts
You can add your custom CSS rules to any of them - they are all combined together to create the main CSS file, so you can add to any of them.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
joanna
@joanna
8 years ago
88 posts
Thanks Brian,
I'll try to work with it tomorrow.
michael
@michael
8 years ago
7,744 posts
If you want to just add you're own you can do that too.

First add the css file:
/skin/(your skin)/css/joanna.css (or whatever you want to call it.)

Then in include.php for the skin
/skin/(your skin)/include.php
you'll see all the other CSS files, so add yours to that list
    // Bring in all our CSS files
    jrCore_register_module_feature('jrCore', 'css', 'jrElastic', 'html.css');
    jrCore_register_module_feature('jrCore', 'css', 'jrElastic', 'grid.css');
    jrCore_register_module_feature('jrCore', 'css', 'jrElastic', 'site.css');
    jrCore_register_module_feature('jrCore', 'css', 'jrElastic', 'page.css');
.....
    jrCore_register_module_feature('jrCore', 'css', 'jrElastic', 'joanna.css');

Upload both joanna.css and that include.php to your site, reset the caches and your done.
joanna
@joanna
8 years ago
88 posts
Thank you :)
As usual, JR team made my day.

I've just tried both methods (Brian's and Michael's) and they work for me.
I guess, from now I will use the file I created. At least I will not have to think which file to update to add my own code.

:)

Tags