Keyword

template override

  • Gianandrea Gattinoni
  • Gianandrea Gattinoni's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #164652 by Gianandrea Gattinoni
template override was created by Gianandrea Gattinoni
In the past there was a plugin "css4k2" to load a css file from an override template.
It seems that it not anymore available.
Unfortunately, the video that explain the override process is old and I did not find a simple solution like it.
Could you pls let me know how to load automatically a css file tied with an override template?
Many thanks for your help

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #164654 by william white
Replied by william white on topic template override
Try putting a copy of k2.css in your templates/YOURTEMPLATE/css/ directory , make changes and they should load
Also, check your templates "custom.css" file. Many tmeplates allow you to use this file to override any css on the site by adding what you want there

Please Log in or Create an account to join the conversation.

  • Gianandrea Gattinoni
  • Gianandrea Gattinoni's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #164672 by Gianandrea Gattinoni
Replied by Gianandrea Gattinoni on topic template override
I do not think it works, because I need a different css file for each override template.
the plugin was fantastic /as shown in the video class). Just naming the css file equal to the override template, assign to a page the template to use and the plugin loaded the correct css file.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 6 months ago #164686 by Krikor Boghossian
Replied by Krikor Boghossian on topic template override
It won't work this way. The CSS file is a global one, since you can add your own classes in your overrides there is no need to add multiple stylesheets. You can also add custom stylesheets using Joomla!'s API in your template.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Gianandrea Gattinoni
  • Gianandrea Gattinoni's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #164693 by Gianandrea Gattinoni
Replied by Gianandrea Gattinoni on topic template override
Im sorry but using K2 you van have different templates and assign them to the pages you like, so you can have different css file one for each templarìte and you can modify the K2 classes.
plase watch this video: www.youtube.com/watch?v=vprpuc5pLHI
ciao

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 6 months ago #164699 by Krikor Boghossian
Replied by Krikor Boghossian on topic template override
Yes but still these stylesheets have to be added manually without css4K2.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum