• 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?

ArnyVee

Well-known member
#1
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?
 

CTXMedia

Formerly CyclingTribe
#2
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.
 

Chris D

XenForo developer
Staff member
#3
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

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