Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • jeannine Friend
    #207729

    Hello, 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 Moderator
    #575348

    Hi @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 Moderator
    #641678

    Hi @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 Moderator
    #740340

    Hi @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 Friend
    #575791

    Hello thank you very much for helping out 🙂 I tried that now, but unfortunately the images are still not linking to their respective articles.

    jeannine Friend
    #642120

    Hello thank you very much for helping out 🙂 I tried that now, but unfortunately the images are still not linking to their respective articles.

    jeannine Friend
    #740780

    Hello 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 Moderator
    #575906

    Hi @jeannine,

    In this case, please provide a temporary FTP account via private reply, I will update this part for you.

    Adam M Moderator
    #642235

    Hi @jeannine,

    In this case, please provide a temporary FTP account via private reply, I will update this part for you.

    Adam M Moderator
    #740895

    Hi @jeannine,

    In this case, please provide a temporary FTP account via private reply, I will update this part for you.

Viewing 10 posts - 1 through 10 (of 10 total)

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