XF 2.1 Widget after each Category

Currently reading:
XF 2.1 Widget after each Category

Neutral Singh

cXF PREMIUM
Feb 12, 2016
23
8
Dear @BassMan

I want to achieve something like the following...
A unique widget showing up after each category block at the forum home?

Thank you

widgets after category.png
 

BassMan

Staff member
Administrator
May 18, 2015
1,156
736
www.customizexf.com
@Neutral Singh

In template node_list_category:

FIND
<div class="block block--category block--category{$node.node_id}">

ADD BELOW
Code:
<xf:if is="$node.node_id == X">
    <xf:widget key="widget_key" />
</xf:if>

X is your category node id above which you'd like to show a widget. Also, change widget_key with your actual widget key name.

Copy/paste the code and change category id and widget key to have different widgets between categories.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to customizeXF

We are running default XenForo style customized by cXF
Registration is free!

Search forums

Similar threads

Sticky sidebar

You'd like to have sticky sidebar on your forum? Click below.

Top