• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Create Override for front.css

Create Override for front.css 11 years 8 months ago #24417

I would like to create an override for the front.css file within my template folder (i.e. templates/TEMPLATE/html/com_rsform/asssets/css/front.css). I have created this file and this folder structure, but RSForm is still loading the front.css file from components/com_rsform/assets/css/front.css.

I realize I can edit the file from the components folder, but I don't want it to be overwritten when I upgrade RSForm in the future.

Can I get RSForm to recognize my override file to avoid it being overwritten when upgrading? If so, what am I doing wrong?
The administrator has disabled public write access.

Create Override for front.css 11 years 8 months ago #24426

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
This really depends on your template, not component:

http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Create Override for front.css 11 years 6 months ago #25188

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Hello.
I have the same issue.

I tried everything now, but it semms impossible to override the files that are contained in the "assets" folder.

If anybody solved this, I´d be happy for an advice.

Regards

Martin
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.

Create Override for front.css 11 years 6 months ago #25189

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Overrides work for PHP (layout) files, not CSS files:

docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Create Override for front.css 11 years 3 months ago #26068

  • lausianne
  • lausianne's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 30
  • Thank you received: 3
According to this, it should work for css, too, and I wish it would ...

stackideas.com/docs/easyblog/customizations/template-overriding

So if you are right, and it doesn't, do you have a suggestion, how to change the css for forms in an upgrade-safe way?

How about this, using the media folder:
www.babdev.com/blog/139-use-the-media-fo...ow-overridable-media
The administrator has disabled public write access.

Create Override for front.css 10 years 5 months ago #29531

  • lausianne
  • lausianne's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 30
  • Thank you received: 3
Time passed, still no solution. Any update on this?

I also just noticed that front.css loads on every page, even if a form only appears on a single page, the contact page. Is there a way to have front.css load on only those pages where it is needed?

I'm tempted to hack the component, although it'll all be lost at the next update ...
The administrator has disabled public write access.

Create Override for front.css 10 years 4 months ago #29720

  • jemmyn
  • jemmyn's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 5
I am trying to do this same thing. I am using a YooTheme template which has UIKit built in which has some great icons and form inputs for example check out this template: http://yootheme.com/demo/joomla/everest
I want to be able to use the calendar pop-up and such. Is there any way we can point to the template CSS or something to utilize this. I ma trying to put some of the calls in the form code and its just not working.
The administrator has disabled public write access.

Create Override for front.css 10 years 4 months ago #29725

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
lausianne wrote:
Time passed, still no solution. Any update on this?

I also just noticed that front.css loads on every page, even if a form only appears on a single page, the contact page. Is there a way to have front.css load on only those pages where it is needed?

I'm tempted to hack the component, although it'll all be lost at the next update ...

This is most likely generated by the fact that you are using the RSForm!Pro System plugin. In this case, because of the system plugin design, resources such as CSS and JS files need to be loaded upfront.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Create Override for front.css 10 years 4 months ago #29726

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
jemmyn wrote:
I am trying to do this same thing. I am using a YooTheme template which has UIKit built in which has some great icons and form inputs for example check out this template: http://yootheme.com/demo/joomla/everest
I want to be able to use the calendar pop-up and such. Is there any way we can point to the template CSS or something to utilize this. I ma trying to put some of the calls in the form code and its just not working.

Have you considered using the form's CSS/Javascript area, CSS section to override built-in style ?
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Create Override for front.css 9 years 11 months ago #31165

Put this in the header of your template to completely remove front.css from loading:
<?php
$sheet = JURI::root(true) . '/components/com_rsform/assets/css/front.css';
$document = &JFactory::getDocument();
if (array_key_exists($sheet, $document->_styleSheets)) unset($document->_styleSheets[$sheet]);
?>

Then add any styles you want to your template css file.
The administrator has disabled public write access.
The following user(s) said Thank You: eero
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!