cannabis ape

Registered
Last one of the day, how to set sticky threads section above the sub-forums which is a much better position for me.

Cheers.
 

Russ

Pixel Exit Staff
Bit of a tricky edit... but open template: forum_view

Remove:

Code:
<xf:if is="$nodeTree">
    <xf:ad position="forum_view_above_node_list" arg-forum="{$forum}" />
    <div class="block">
        <div class="block-container">
            <div class="block-body">
                <xf:macro template="forum_list" name="node_list"
                    arg-children="{$nodeTree}"
                    arg-extras="{$nodeExtras}"
                    arg-depth="2" />
            </div>
        </div>
    </div>
    <xf:ad position="forum_view_below_node_list" arg-forum="{$forum}" />
</xf:if>
Then find:

Code:
                        <xf:ad position="forum_view_below_stickies" arg-forum="{$forum}" />
                    </xf:if>
will be around line 149

Add right after:

Code:
                    <xf:if is="$nodeTree">
                        <xf:css>
                            .structItemContainer-group.structItemContainer-group--sticky:after
                            {
                            display: none;
                            }
                        </xf:css>
                        <div class="custom-nodes">
                            <xf:ad position="forum_view_above_node_list" arg-forum="{$forum}" />

                            <xf:macro template="forum_list" name="node_list"
                                      arg-children="{$nodeTree}"
                                      arg-extras="{$nodeExtras}"
                                      arg-depth="2" />
                            <xf:ad position="forum_view_below_node_list" arg-forum="{$forum}" />
                        </div>
                    </xf:if>
Then extra.less:

Code:
.custom-nodes
{
    &:before, &:after
    {
        display: block;
        padding: 12px 11px;
        .xf-xbStickyDividerText();
    }
    &:before
    {
        content: "Sub Forums";
    }
    &:after
    {
        content: "Threads";
    }
}
Result:
Screenshot_5.png
 

cannabis ape

Registered
Damn man, the best support as ever. Told Damien (BHW) the other day that the guys from pixelexit are great!

Gonna snapshot the server quick just in case and then use your edit. (y)
 

Russ

Pixel Exit Staff
Damn man, the best support as ever. Told Damien (BHW) the other day that the guys from pixelexit are great!

Gonna snapshot the server quick just in case and then use your edit. (y)
Thank you very much!

I often use child styles to test things out, make them so only admins can view them and put the edits there. This way you can test and easily port them to the live site.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.