VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Getting rid of preview image in portfolio
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Getting rid of preview image in portfolio

Getting rid of preview image in portfolio 01 Jan 2015 22:20 #6057

Hi guys, first of all thanks for creating an awesome template!

In the attached pictures could you tell me how to remove the preview picture so there is no black popup with the +? I would like it to just show the picture without being able to click.

And also the back to top button, is there a way instead of scrolling to top to go back to the portfolio page?

Thanks for any help
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
  • Attachment This image is hidden for guests. Please log in or register to see it.

  • Posts:1
  • BigJT
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Getting rid of preview image in portfolio 07 Jan 2015 02:49 #6077

Go to templates/jf_calla-exteriors/html/com_k2/portfolio/item.php,
1. edit:
 
<span class="itemImage">
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
<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 class="itemImageHover"></span>
<span class="itemImageHoverIcon"></span>
</a>
</span>
 

to:
 
<span class="itemImage">
<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>
 

2. edit:
 
<div class="itemBackToTop">
<a class="k2Anchor" href="<?php echo $this->item->link; ?>#startOfPageId<?php echo JRequest::getInt('id'); ?>">
<?php echo JText::_('K2_BACK_TO_TOP'); ?>
</a>
</div>
 

to:
 
<div class="itemBackToTop">
<a href="<?php echo $this->item->category->link; ?>">
<?php echo JText::_('K2_BACK_TO_TOP'); ?>
</a>
</div>
 


Thank you for using our template.

joomfreak
Last Edit: 07 Jan 2015 03:02 by isupport.

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.52 seconds
Thursday 28 March 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.