We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. baranes
  2. General Discussion
  3. Thursday, 16 July 2015
  4.  Subscribe via email
Hello,

I would like, having a custom css file for each layout.
In the documentation (specific loading style sheet), it is said that these files must be located in the Block in question, OK, but the path is "Layouts", does not exist. Where do I position these CSS files for each each layout. I have a "Local" folder.

Thank you for your answers.
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

The "local" folder is for override purpose. In your case, you are adding new file, you don't need the local folder. You should create the custom.css file in the folder: templates\t3_bs3_blank\css\layouts (you have to create the "layouts" folder as it's not included by default). Once done, open the layout file you want to load the custom.css file and add the code:

<?php $this->addCss('layouts/custom') ?>


P/S: This will only work when dev mode is off as the site will use CSS in this case.

Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you for your reply.

I did what you propose, but He considers that one of the CSS files because I have 2 files, one for each layout. I wish that every call of a page, a particular CSS file is linked to it.

I'll try to be clearer:
I have a template with 2 styles, one per page. I use some of the same class in two files. I wish I could call the Class "red" in the CSS file when Red I view the page 1 and call the same Class "red" in the CSS file when "green" I view the page 2.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Yes, it actually works.
Thank you very much for your help :)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Great to see it work. Well done!
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.