XF 2.2.x Tips Background Color For Category And Forum Nodes

hifitechindia

hifitechindia

Administrator
Staff member
Joined
4 August 2023
Messages
525
Online
Sometimes, we want different color for each category forum. So here simple css which you want to try.
Add to extra.less in your template.
Code:
/* Coloring Category and Node */
.block.block--category.block--categoryXX .block-header {
    background: -webkit-linear-gradient(335deg, #28356c 44%, #074946 64%, #21307a 100%);
}
.block.block--category.block--categoryXX .block-body {
    background: -webkit-linear-gradient(19deg, #161c31 0%, #30264b 44%, #213c40 58%, #13395a 76%, #272b56 100%);
}
XX is your category id. As we know, XF has unique id on url link. Just like this sub forum, the id is 55

If you bored with unique id on url. Just for good looking or may SEO
In Admin backend, nodes. URL Portion (Optional) :

Code:
xenforo-tips-guides
 

Similar threads

hifitechindia
XF version 2.0 2.1 2.2 When you install XenForo on Hosting or VPS, your forum always displays the copyright line in the footer. This will be more annoying when this copyright line is added with information from the addons developer when you accidentally install an additional one. certain...
Replies
0
Views
70
hifitechindia
hifitechindia
hifitechindia
  • Locked
xfrm_updates find search replace Chang Logs
Replies
0
Views
85
hifitechindia
hifitechindia
hifitechindia
This happens after i've installed addon from archive in admin panel.... Anything to resolve this? error_log file located in forum's root is empty. An error occurred while the page was being generated. Please try again later. FIX: GO TO FILEMANAGER src/config.php add code...
Replies
0
Views
225
hifitechindia
hifitechindia
mani5grockers
Confirmed that src/config.php contains: $config['maxImageResizePixelCount'] = 60000000; Options > Resource Manager > Maximum resource file size (KB) My server allows 500MB and this is confirmed on the admin dashboard and also on the attachment size page.
Replies
0
Views
397
mani5grockers
mani5grockers
hifitechindia
Hello everyone, Since many users have reached out to try and receive explanations of various customizations around our community, I've deciced to write up a quick tutorial on how to enable custom user group icons in front of your group names. This modification is pretty simple since there is no...
Replies
0
Views
224
hifitechindia
hifitechindia
hifitechindia
TYPE 1 Please try placing this code into your extra.less template /* Remove footer copyright information */ .p-footer-copyright { display: none; } # = ID element. = Class element You can use your browser element inspector to figure out what the name of the div/ID/span of the element containing...
Replies
0
Views
355
hifitechindia
hifitechindia
hifitechindia
XenForo has many addons, and the official are XFRM and XFMG We can change the name "Resource" to "Download" in Phrase, but the URL still "yourdomain.com/resources" Go to "Setup > Route Filters" Find route : resources/ Replace with : download/ Now, you have, "yourdomain.com/download" You can...
Replies
0
Views
240
hifitechindia
hifitechindia
hifitechindia
How to limit the size of Google AdSense ads This code is directly from Google support. Please note that this will not work for AutoAds. How to modify your responsive ad code - Google AdSense Help If you find that our responsive ad code doesn't do everything you need, you may modify your ad code...
Replies
0
Views
269
hifitechindia
hifitechindia
hifitechindia
If you want to provide an extra layer of protection to admin.php, the /install directory, and test & development installations, you can do so with .htaccess authentication. Protecting admin.php To protect admin.php, edit the .htaccess file which is in your forum root directory (e.g...
Replies
0
Views
216
hifitechindia
hifitechindia

Users who are viewing this thread

Top