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

How to add banner for each category

Discussion in 'Styling and Customization Questions' started by strongarm_playa, Nov 29, 2012.

  1. strongarm_playa

    strongarm_playa Active Member

    I understand this is how you add a banner to your forums, but how do you add banners to your categories?

    Admin CP -> Appearance -> Templates -> ad_below_top_breadcrumb

    <div style="text-align: center;">
    <xen:if is="{$forum.node_id} == 2">
    <img src="path/to/image.gif" />
    <xen:elseif is="{$forum.node_id} == 8" />
    <img src="path/to/image.gif" />
    Can you not use this code for a category? I even changed the word Forum to Category and still.. no luck
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Category records are not available to the container like forum records are. However, you can check the immediate parent (one level up) of a forum with {$forum.parent_node_id}. That may work for your purposes.

Share This Page