cdub Well-known member Apr 14, 2021 #1 I would like to add an additional custom button next to the What's New and post thread buttons on the forum list page. What template do I need to edit to add that?
I would like to add an additional custom button next to the What's New and post thread buttons on the forum list page. What template do I need to edit to add that?
Hoffi Well-known member Apr 14, 2021 #2 its the template forum_overview_wrapper In the top is a tag <xfageaction> which contains the buttons. Just add a third one as first element if the new button shoould appear on the left. Upvote 2 Downvote
its the template forum_overview_wrapper In the top is a tag <xfageaction> which contains the buttons. Just add a third one as first element if the new button shoould appear on the left.
cdub Well-known member Apr 14, 2021 #3 Thank you! That worked great! Although I had to edit out the "..." to make it fit nice on mobile. Upvote 1 Downvote
MapleOne Well-known member Saturday at 3:13 PM #4 Code: <xf:button href="{{ $xf.options.forumsDefaultPage == 'new_posts' ? link('forums/new-posts') : link('whats-new/posts') }}" icon="bolt"> {{ phrase('new_posts') }} </xf:button> The icon="bolt" I made a second button and pretty well duplicated the code above and edited the link. To differentiate the button I would like to add a Solid Bolt instead of a regular bolt. The font awesome code is Code: <i class="fa-solid fa-bolt-lightning"></i> So how do I replace "bolt" with "solid-bolt" ?? Upvote 0 Downvote
Code: <xf:button href="{{ $xf.options.forumsDefaultPage == 'new_posts' ? link('forums/new-posts') : link('whats-new/posts') }}" icon="bolt"> {{ phrase('new_posts') }} </xf:button> The icon="bolt" I made a second button and pretty well duplicated the code above and edited the link. To differentiate the button I would like to add a Solid Bolt instead of a regular bolt. The font awesome code is Code: <i class="fa-solid fa-bolt-lightning"></i> So how do I replace "bolt" with "solid-bolt" ??