Hi - how do you specify your own libraries in the .info file?

Based on the content of the omega.info file, I have tried adding the following to my subtheme.info file:

libraries[rdl_extrajs][name] = RDL js
libraries[rdl_extrajs][description] = Extra bells n whistles for the RDL theme.
libraries[rdl_extrajs][js][0][file] = rdl.js
libraries[rdl_extrajs][js][0][options][weight] = -24
libraries[rdl_extrajs][js][1][file] = jquery.color.js
libraries[rdl_extrajs][js][1][options][weight] = -25

I just made up the "rd_extrajs" as I don't know what this really is.

The two js files are located in the js folder that is within my RDL theme, that is themes/rdl/js

Similarly, how would you add extra css files?

Thanks
Tim

Comments

fubhy’s picture

By using "css" instead of "js" in that array:

libraries[rdl_extrajs][name] = RDL js
libraries[rdl_extrajs][description] = Extra bells n whistles for the RDL theme.
libraries[rdl_extrajs][js][0][file] = rdl.js
libraries[rdl_extrajs][js][0][options][weight] = -24
libraries[rdl_extrajs][js][1][file] = jquery.color.js
libraries[rdl_extrajs][js][1][options][weight] = -25
libraries[rdl_extrajs][css][0][file] = rdl.css
libraries[rdl_extrajs][css][0][options][weight] = -24
libraries[rdl_extrajs][css][1][file] = jquery.color.css
libraries[rdl_extrajs][css][1][options][weight] = -25

fubhy’s picture

Status:Active» Fixed
timtunbridge’s picture

Thanks fubhy.

I also discovered the Toggle Libraries and Toggle Styles sections under the Theme - this got things going.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.