Deactivate category link

Support desk for Multipurpose Quark Theme
GK User
Tue May 24, 2016 7:18 pm
Hey,

how can i deactivate the link to the category and the author?
Category and author should be visible but without linking...

Bildschirmfoto 2016-05-24 um 20.12.41.png


Thanks a lot!
Garthi
User avatar
Expert Boarder

teitbite
Sun May 29, 2016 1:26 pm
Hi

You will have to edit this in file directly. Depending from the type of article source it will be either in:
/html/com_content/article/default.php
/html/com_k2/templates/default/item.php
User avatar
Moderator

GK User
Sun May 29, 2016 2:17 pm
Hey teitbite,

could you show me the point where i have to edit the files and how (new code)...

That would be great... Thanks Garthi!
User avatar
Expert Boarder

teitbite
Thu Jun 02, 2016 5:21 pm
Hi

Please tell me if You are using K2 or regular joomla articles as content.
User avatar
Moderator

GK User
Thu Jun 02, 2016 5:33 pm
I use K2 articles...
User avatar
Expert Boarder

teitbite
Mon Jun 06, 2016 6:43 pm
Hi

Please edit file /html/com_k2/templates/default/item.php line 146:

Code: Select all
                             <a href="<?php echo $this->item->category->link; ?>" class="inverse"><?php echo $this->item->category->name; ?></a>


and change it into:

Code: Select all
                             <?php echo $this->item->category->name; ?>
User avatar
Moderator


cron