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. Guest
  2. Motivator Hole-in-One Smile Seeker
  3. General Discussion
  4. Wednesday, 14 October 2015
  5.  Subscribe via email
Hello, here Hanneke again,
I have a question about adding css to blocks i have created my own.
In the documentation I find I have to add a less. file to the folder templates/t3_bs3_blank/layouts (see attachment).
But this folder does not exist.
How can I add css to a newly created block?

I'm working with version 2.2.1 of the blank template.

Best greetings,
Hanneke
Attachments (1)
Comment
There are no comments made yet.
Accepted Answer
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

By default, the folder is not included so please add new folder and .less file and go ahead to next steps.

In case you want to load style for a specific layout or page, you can use the instruction below.


Way 1:

1. Create style file (.less file) in the less folder that you want to load to the menu items you want (for example: blog.less)
2. Open the layout file that the menu items you want to load the css file and add the following code:

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


Way 2:

1. Create style file (.less file) in the folder: templates\t3_bs3_blank\less\extras
2. Open any t3 bs3 blank template style, in the "Add-ons" tab, you will the section: Template Extended styles, you can assign the pages that will load the custom style from the .less file you created in step 1.

Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # Permalink


There are replies in this post but you are not allowed to view the replies from this post.