-
AuthorPosts
-
jeannine Friend
jeannine
- Join date:
- May 2014
- Posts:
- 76
- Downloads:
- 4
- Uploads:
- 9
- Thanks:
- 30
- Thanked:
- 2 times in 2 posts
June 22, 2015 at 1:41 pm #207729Hello, I was wondering how to fix the problem of the frame of the height of the images shown in category view are different. It s impossible for customers to photoshop all images to match sizes.. 😉
Another issue is that images should link to their articles.
Both category images should lead to category content and category item images to their articles.
See here that the parent category image does not link to the category description, but the sub category items work fine.
http://moosdorf.dk.web18.redhost.dk/porte-lager
Here you can see that it can be misleading as there are no links on the items http://moosdorf.dk.web18.redhost.dk/porte-lager/svingporte
How to fix above problems?
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 24, 2015 at 8:54 am #575348Hi @jeannine,
1. About this part, when you navigate to top category, the first block display the category itself so both featured image or title is not linkable (you can switch to default Protostar template and you will see the same result).
2. Open file templatesja_hotelhtmlcom_k2defaultcategory_item.php and look for this part :
<span class="catItemImage">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</span>and update as below :
<a href="<?php echo $this->item->link; ?>">
<span class="catItemImage">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</span>
</a>Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 24, 2015 at 8:54 am #641678Hi @jeannine,
1. About this part, when you navigate to top category, the first block display the category itself so both featured image or title is not linkable (you can switch to default Protostar template and you will see the same result).
2. Open file templatesja_hotelhtmlcom_k2defaultcategory_item.php and look for this part :
<span class="catItemImage">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</span>and update as below :
<a href="<?php echo $this->item->link; ?>">
<span class="catItemImage">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</span>
</a>Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 24, 2015 at 8:54 am #740340Hi @jeannine,
1. About this part, when you navigate to top category, the first block display the category itself so both featured image or title is not linkable (you can switch to default Protostar template and you will see the same result).
2. Open file templatesja_hotelhtmlcom_k2defaultcategory_item.php and look for this part :
<span class="catItemImage">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</span>and update as below :
<a href="<?php echo $this->item->link; ?>">
<span class="catItemImage">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</span>
</a>jeannine Friendjeannine
- Join date:
- May 2014
- Posts:
- 76
- Downloads:
- 4
- Uploads:
- 9
- Thanks:
- 30
- Thanked:
- 2 times in 2 posts
June 29, 2015 at 8:37 am #575791Hello thank you very much for helping out 🙂 I tried that now, but unfortunately the images are still not linking to their respective articles.
jeannine Friendjeannine
- Join date:
- May 2014
- Posts:
- 76
- Downloads:
- 4
- Uploads:
- 9
- Thanks:
- 30
- Thanked:
- 2 times in 2 posts
June 29, 2015 at 8:37 am #642120Hello thank you very much for helping out 🙂 I tried that now, but unfortunately the images are still not linking to their respective articles.
jeannine Friendjeannine
- Join date:
- May 2014
- Posts:
- 76
- Downloads:
- 4
- Uploads:
- 9
- Thanks:
- 30
- Thanked:
- 2 times in 2 posts
June 29, 2015 at 8:37 am #740780Hello thank you very much for helping out 🙂 I tried that now, but unfortunately the images are still not linking to their respective articles.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
-
AuthorPosts
This topic contains 10 replies, has 2 voices, and was last updated by Adam M 9 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum