Drupal: how can I remove links from taxonomic terms?

I like the terms of taxonomy on my site pages, but I don’t want the user to be able to click on them. I just want to remove links.

I am trying to remove them from php files of a taxonomic module, but I cannot find them.

thank

+3
source share
2 answers

You never want to edit a core module, such as a taxonomy, as it is very difficult to update your Drupal installation. See also .

hook_link_alter / . , - , node.tpl.php .

+2

Display Suite module jQuery

jQuery(".taxonomy-term h2 a").each(function(){
var $t = jQuery(this);
$t.after($t.text());
$t.remove();

@Will @Matt .

0

Source: https://habr.com/ru/post/1747839/


All Articles