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

How do I make categories 'not clickable' or disable the links?

Discussion in 'XenForo Questions and Support' started by ArnyVee, May 30, 2012.

  1. ArnyVee

    ArnyVee Well-Known Member

    I would like to remove the ability of the categories to be a 'link'. Preferably, I'd like to use something to place in the extra.css as opposed to commenting out in the code.

    How can I disable the links on the categories?
  2. CyclingTribe

    CyclingTribe Well-Known Member

    As far as I understand it EXTRA.css is for additional styling/overriding existing css elements - I suspect you'll need to edit the template to achieve what you want.
  3. Chris D

    Chris D XenForo Developer Staff Member

    You cannot control the function of HTML elements with CSS. Only their style.

    It's a very simple template edit.

    In template node_category_level_1

    <h3 class="nodeTitle"><a href="{xen:link categories, $category}">{$category.title}</a></h3>
    <h3 class="nodeTitle">{$category.title}</h3>
  4. pjfry

    pjfry Active Member

    Stormlilly, CyclingTribe and Chris D like this.
  5. Chris D

    Chris D XenForo Developer Staff Member

  6. ArnyVee

    ArnyVee Well-Known Member

    Thanks for the comments and thanks for the help Yorick :)
  7. Stormlilly

    Stormlilly Member

    And this is why I love this community. Thanks guys. Everything is made so easy.
  8. fionix

    fionix Member

    do you know how to remove the link in the HTML then ?

Share This Page