- Joined
- Dec 28, 2023
- Messages
- 119
- Points
- 28
Reputation:
Why fill your extra.less template when you can simply create a new template for each of your changes and then insert this new template into your extra.less template in just one line. Adding all custom code into extra.less will quickly make this very messy in favor of clarity
In this method, we simply create a new template and include it in extra.less.
Let's get started:
1. For this we will go to Xenforo ACP > Appreance > Template.
2. Click on "Add Template"
For reference, I will call it MyCustom.less
3. Now paste your own code into the text area and click save at the bottom
You have now created a custom template.
Now it's time to call this template in your extra.less to make it work in the forum.
4. Go to the extra.less template in the same path as before
5. Paste the following code to call your custom template in extra.less
6. Click SAVE and you're done.
You have now learned how to create a custom template in Xenforo and incorporate it into the work style.
Share this with someone who needs it. See you soon with another useful post!
In this method, we simply create a new template and include it in extra.less.
Let's get started:
1. For this we will go to Xenforo ACP > Appreance > Template.
2. Click on "Add Template"
Name your template. Make sure that the name you choose is unique and is not used by other templates. The name should end with .less
For reference, I will call it MyCustom.less
3. Now paste your own code into the text area and click save at the bottom
You have now created a custom template.
Now it's time to call this template in your extra.less to make it work in the forum.
4. Go to the extra.less template in the same path as before
5. Paste the following code to call your custom template in extra.less
Less:
{{ include('mycustom.less') }}
Change "mycustom.less" with the name of the template you have assigned
6. Click SAVE and you're done.
You have now learned how to create a custom template in Xenforo and incorporate it into the work style.
Share this with someone who needs it. See you soon with another useful post!