Disable category link

Hello!
How can I deactivate the category link? I want to display the category in the article list, but without link.
Thank you. Martin
4 months 3 weeks ago #1 by Martin Dusil

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5238) Offline
Hi Martin, which Minifp pro theme are you using?
4 months 3 weeks ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Hi. I use Default theme.
4 months 2 weeks ago #3 by Martin Dusil

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5238) Offline
Hi you can do that via template override. If you don't know how to do it yet, please follow this video 

After that, then edit the default.php, find this part :
<?php
// Show Article Category
if($default_show_cat){
echo "<span class='mfp_cat'><a href=".JRoute::_('index.php?option=com_content&view=category&id='.$item->catid).">".$item->category_title."</a></span>";
}
?>

change that to
<?php
// Show Article Category
if($default_show_cat){
echo "<span class='mfp_cat'>".$item->category_title."</span>";
}
?>
4 months 2 weeks ago #4 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum