Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • jamhulk Friend
    #197372

    Hi Guys,

    Got another question here.
    I just want to know how to disable/remove the link in image in portfolio layout?.

    Thank in advance.


    1. untitled
    MoonSailor Friend
    #533563

    <blockquote>
    I just want to know how to disable/remove the link in image in portfolio layout?.
    </blockquote>

    You need to override “portfolio” layout. Please open the file “templates/purity_iii/html/com_content/category/portfolio_item.php”, find this code:


    <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>" title="">
    <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
    <div class="item-image">
    <img src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
    <?php if ($attribs->get('portfolio-state')) : ?>
    <span class="item-state state-<?php echo $attribs->get('portfolio-state') ?>">
    <?php echo $attribs->get('portfolio-state') ?>
    </span>
    <?php endif ?>
    </div>
    <?php endif; ?>
    <h3><?php echo $this->item->title ?></h3>
    </a>

    and change it to:

    <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
    <div class="item-image">
    <img src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
    <?php if ($attribs->get('portfolio-state')) : ?>
    <span class="item-state state-<?php echo $attribs->get('portfolio-state') ?>">
    <?php echo $attribs->get('portfolio-state') ?>
    </span>
    <?php endif ?>
    </div>
    <?php endif; ?>
    <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>" title="">
    <h3><?php echo $this->item->title ?></h3>
    </a>

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

This topic contains 2 replies, has 2 voices, and was last updated by  MoonSailor 10 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum