-
AuthorPosts
-
jamhulk Friend
jamhulk
- Join date:
- August 2012
- Posts:
- 19
- Downloads:
- 4
- Uploads:
- 8
- Thanks:
- 10
- Thanked:
- 1 times in 1 posts
May 4, 2014 at 5:08 am #197372Hi Guys,
Got another question here.
I just want to know how to disable/remove the link in image in portfolio layout?.Thank in advance.
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
May 5, 2014 at 9:04 am #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>
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by MoonSailor 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to disable the link in image in portfolio layout
Viewing 2 posts - 1 through 2 (of 2 total)