Joomla! User Group Suffolk

What is Joomla!

yellowWant to know more about the Joomla! Content Management System?

Joomla! is one of the world's leading Open Source projects.

Find out more

Who are JUGS?

redFind out about the team behind JUGS and our lovely members!

We welcome new members of experience levels - we don't bite!  

Find out more

Why should I join?

greenWhat are the benefits from joining Joomla! User Group Suffolk?  

Hear from some of our members about how it has benefited them.

Find out more

How do I get involved?

blueWant to know how to get involved with JUGS and the Joomla! Community?

From coding to marketing, documentation to bug testing.

Find out more

Welcome, Guest
Username: Password: Remember me

TOPIC: Custom CSS filles in RocketTheme Templates

Custom CSS filles in RocketTheme Templates 1 year 5 months ago #37

  • chris-austin
  • chris-austin's Avatar
  • OFFLINE
  • Administrator
  • Posts: 46
  • Thank you received: 2
  • Karma: 2
Great JUGS meeting last night! I learnt tons, as ever.

Matt showed me how to link to custom CSS files by editing the index.php file of the Template, but unfortunately it doesn't work on RocketTheme templates, so after some scratching around I came up with this:

Create a file called (say) "mycustomstyle.css" which might have these contents:
/* Add Your Custom CSS Codes Here */
h1 {
font-size: 11px;
color: red;
}
and save it in templates/template_name/css

Now look into the index.php of the template at template/template_name/index.php
You will find a line like this in the head tag:
$gantry->addStyles(array('template.css','joomla.css','overlays.css'));
Just add 'mycustomstyle.css' at the end of that line, thus:
$gantry->addStyles(array('template.css','joomla.css','overlays.css','mycustomstyle.css'));

It would appear that you would do something very similar for adding JS scripts.

Chris
The administrator has disabled public write access.

Re: Custom CSS filles in RocketTheme Templates 1 year 5 months ago #39

  • RCheesley
  • RCheesley's Avatar
  • OFFLINE
  • Administrator
  • Posts: 78
  • Thank you received: 8
  • Karma: 1
Hi Chris,

Yes, each template does things slightly differently with regards to bringing in CSS - RocketTheme are particularly quirky in the way they do some things! Glad you managed to figure it out, and great to see you!

Ruth
The administrator has disabled public write access.
Time to create page: 0.115 seconds
Powered by Kunena Forum

Joomla!™ is the trademark of Open Source Matters, Inc in the United States and other countries.

The Joomla! name and variations on it utilizing shortforms for it such as J, Joo, Joom, etc, used on this site, is used under a limited license granted by Open Source Matters. Joomla Suffolk is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.