ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 5318

Separate sticky threads from normal ones

by NickxD - 01-08-2022 - 06:04 PM
#1
This tutorial will allow you to separate sticky threads from normal ones. Lets begin

1- Go to template forum_view

2- find this code
Code:
<xf:macro template="thread_list_macros" name="item" arg-thread="{$thread}" arg-forum="{$forum}" />
                            </xf:foreach>
                        </div>

3- Place this code below the above code and hit save.
Code:
<xf:if is="{$stickyThreads}">
            <hr class="stickySeparator"/>
        </xf:if>

4- Now go to template extra.less and add this
Code:
.stickySeparator {
  height: 12px;
  background-color: #ececec;
  border-style:solid;
  margin: 0px;
}

Hit save and you are good to go. 

You can play with the css code in case you want to change the color or the hight of the bar as I did below in the screenshot.

Here is the after math.


[Image: 86d5747750fbdc54712ed3341feaac13.png]

https://gyazo.com/86d5747750fbdc54712ed3341feaac13

Hope you enjoy. If you need help just lmk.

Also since xenforo has updated try looking for this code and just follow the above tutorial.

Code:
<xf:ad position="forum_view_below_stickies" arg-forum="{$forum}" />
Reply

Users browsing: 2 Guest(s)