XF 1.4 Subforum template

daimpa

Active member
Hello, which is the template where I can edit the subforum block? And which is the "Style propriety" which rules this section?

I mean, the forum list block you see at the top of the section page when there're subforum, at the top of the thread list.

Thanks! :)
 
Last edited:
Hi,

For the CSS, go to "Style Properties" and click on "Forum / Node List". For the HTML, go to the templates of your style and search for "node_forum_level_2".
 
This method is with pure CSS and no HTML edit is required. It's for me the easiest way.

Go to the templates of your style and search for "EXTRA.css". Then add this:
Code:
.forum_view .node:first-child:before
{
    content: "Sub-Forums";
    display: block;
    font-size: inherit !important;
    @property "subHeading";
    font-size: 11px;
    color: @secondaryDarker;
    background: @secondaryLighter url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
    padding: 5px 10px;
    margin: 3px auto 0;
    border-top: 1px solid @secondaryLighter;
    border-bottom: 1px solid @secondaryLight;
    @property "/subHeading";
   
    @property "categoryStrip";
    padding: 5px 10px;
    margin: 0;
    border-bottom-color: @subHeading.border-bottom-color;
    border-radius: 5px;
    min-height: 6px;
    @property "/categoryStrip";
}

Result:

Screenshot_1.webp
 
Last edited:
Thanks, worked perfectly!!! I've just removed the proprty as actually I won't use it on default style and don't want to set properties via this mod.

Thanks for your support!
 
Back
Top Bottom