1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Subforum template

Discussion in 'Styling and Customization Questions' started by daimpa, Mar 26, 2015.

  1. daimpa

    daimpa 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: Mar 26, 2015
  2. Dylan V

    Dylan V Well-Known Member


    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".
  3. daimpa

    daimpa Member

    Attached Files:

  4. Dylan V

    Dylan V Well-Known Member

  5. daimpa

    daimpa Member

    Yes, I just want to add the orange bar :)
  6. Dylan V

    Dylan V Well-Known Member

    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:
    .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";

    Last edited: Mar 28, 2015
    daimpa likes this.
  7. daimpa

    daimpa Member

    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!
    Dylan V likes this.

Share This Page