Own Component Css File - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Own Component Css File

A

Alena Merklová

Template 2 years ago

Hi. I wan customize portfolio component.

I want to take the original css component and insert it via ftp into my template. I've read a bunch of documentation and discussion forums, but nothing works for me. As, for example, the display of VirtueMart is modified.

My helix tempalate load /components/com_spsimpleportfolio/assets/css/spsimpleportfolio.css

What and how do I have to do so that the template loads my modified from the folder instead of the original css when displaying the portfolio /templates/my_tempalte/css?

I want to make sure that my css will not be changed after updating the component. And I don't want to use the custom.css method.

Thx

0
2 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #102078

Hi Alena,

And I don't want to use the custom.css method.

In that case, use Custom CSS inside Template Options > Custom Code > Custom CSS

OR

Find and install module HD-Custom CSS (hyde-design.co.uk) then put your custom CSS inside and publish in "debug" position. There are others similar modules or plugins for custom code etc.


In Joomla is not so easy to override component css files like you can do with views. So listen my two advices, trusted solutions. That's all I can help without code customization.

0
A
Alena Merklová
Accepted Answer
2 years ago #102093

I found that it depends on how the component is written. If it's "done right", it's easy. Unfortunately, I can't do it with sp simple portfolio. So how to proceed with this component?

Where and where to add the code to load my css from the template and not from the component. I don't want to use @import because it would just increase the loading time :(

0