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>