- Posts: 5
COMMUNITY FORUM
How to disable Category Image Link and Title Link
- Team AuroraTheme
-
Topic Author
- Offline
- New Member
Less
More
13 years 1 month ago - 13 years 1 month ago #64643
by Team AuroraTheme
How to disable Category Image Link and Title Link was created by Team AuroraTheme
i want to to remove the link around category images, and category title names, when i go into category.php under my templates html folder an remove the (a link tag) it breaks the category title an category images don't get displayed i want to keep the category images, and there title but don't want them to be active.
Please Log in or Create an account to join the conversation.
- Team AuroraTheme
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
13 years 1 month ago #64644
by Team AuroraTheme
can this be marked as solved as i figured it out
in category.php /templates/mytemplate/html/com_k2/templates/myk2template/category.php
this is for the category images
<a class="subCategoryImage" href="<?php echo $subCategory->link; ?>">
<img alt="<?php echo $subCategory->name; ?>" src="<?php echo $subCategory->image; ?>" />
</a>
and replace with this
<a class="subCategoryImage" href="#">
<img alt="<?php echo $subCategory->name; ?>" src="<?php echo $subCategory->image; ?>" />
</a>
and also this is for the category titles
<!-- Subcategory title -->
<h2>
<a href="<?php echo $subCategory->link; ?>">
<?php echo $subCategory->name; ?><?php if($this->params->get('subCatTitleItemCounter')) echo ' ('.$subCategory->numOfItems.')'; ?>
</a>
</h2>
replace with this
<!-- Subcategory title -->
<h2>
<a href="#">
<?php echo $subCategory->name; ?><?php if($this->params->get('subCatTitleItemCounter')) echo ' ('.$subCategory->numOfItems.')'; ?>
</a>
</h2>
Replied by Team AuroraTheme on topic Re: Category Image Link and Title link disabled
Tony wrote: i want to to remove the link around category images, and category title names, when i go into category.php under my templates html folder an remove the (a link tag) it breaks the category title an category images don't get displayed i want to keep the category images, and there title but don't want them to be active.
can this be marked as solved as i figured it out
in category.php /templates/mytemplate/html/com_k2/templates/myk2template/category.php
this is for the category images
<a class="subCategoryImage" href="<?php echo $subCategory->link; ?>">
<img alt="<?php echo $subCategory->name; ?>" src="<?php echo $subCategory->image; ?>" />
</a>
and replace with this
<a class="subCategoryImage" href="#">
<img alt="<?php echo $subCategory->name; ?>" src="<?php echo $subCategory->image; ?>" />
</a>
and also this is for the category titles
<!-- Subcategory title -->
<h2>
<a href="<?php echo $subCategory->link; ?>">
<?php echo $subCategory->name; ?><?php if($this->params->get('subCatTitleItemCounter')) echo ' ('.$subCategory->numOfItems.')'; ?>
</a>
</h2>
replace with this
<!-- Subcategory title -->
<h2>
<a href="#">
<?php echo $subCategory->name; ?><?php if($this->params->get('subCatTitleItemCounter')) echo ' ('.$subCategory->numOfItems.')'; ?>
</a>
</h2>
Please Log in or Create an account to join the conversation.
- Andy
-
- Offline
- New Member
Less
More
- Posts: 3
12 years 7 months ago #64645
by Andy
Replied by Andy on topic Re: Category Image Link and Title link disabled
just tried it, may be different because using the latest version of k2 but edited the category_item.php instead of the category.php as indicated above
Please Log in or Create an account to join the conversation.