CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom CSS in Joomla
Pages: [1]

Author Topic: Custom CSS in Joomla  (Read 576 times)

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Custom CSS in Joomla
September 21, 2014, 04:21:09 am
I have for many hours trying to figure out how to handle CSS in CiviCRM.
I have set the Custom CSS URL to be any folder in my template folder: (http://xxxxxx.dk/templates/rt_corvus/custom)
Here I have placed the file custom.css and made ​​some css content.
It does not work. There must be something I'm missing, but what?

I also think that the topic of custom css being treated too little in CiviCRM and it is annoying. Other good components is much more accurate in telling users how custom css to be treated.
Regards

Rudy Madsen

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Custom CSS in Joomla
September 21, 2014, 06:18:58 am
Very often in Joomla if I need to override CiviCRM classes I just do it in the CSS files that are used by the template.  But usually that is just 1 or 2 classes so it isn't a big deal.

I believe that you need to point the Custom CSS URL to the exact directory that the css file is in, not just a top level directory where the CSS files could be in any sub directory.  Have you tried putting your custom.css file in the custom directory itself instead of in one of the subdirectories?
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Re: Custom CSS in Joomla
September 21, 2014, 08:32:08 am
I'm not sure what you mean. Du you mean the custom directory inside the civicrm folder or in the template folder? Because the civicrm css folder already contain the origin cividrm.css file. So whre should I put my new override civicrm.css file?
Regards

Rudy Madsen

mark0514

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 1
  • CiviCRM version: 4.5.6
  • CMS version: Joomla 3.3.6
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Custom CSS in Joomla
September 21, 2014, 09:00:55 am
Sorry to step in..Make sure that your custom css url includes the file name, whatever it may be. I put mine in a civi folder and named it civi_custom.css. The overides also seemed to work in my template custom css file but I found it easier to separate the two.

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Re: Custom CSS in Joomla
September 21, 2014, 09:09:27 am
Hi Mark,
Don't be sorry  :D
That helped me out. Thanks alot!!!!
Regards

Rudy Madsen

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom CSS in Joomla

This forum was archived on 2017-11-26.