Remove link and image border

Business template for Joomla 3 and 2.5 ideal to create blog or personal website.
GK User
Wed Feb 15, 2012 10:03 am
Hi everybody,

I'm new in Joomla with basic html knowledge.
I'm trying to remove the 1px border and link on image in K2 item with no luck.
Anyone can help me?

Thank you for decoding my awful english.
User avatar
Fresh Boarder

GK User
Wed Feb 15, 2012 10:27 am
Please add following code in "templates/gk_the_real_design/css/override.css" file then enable Css Override option.
Joomla Admin > Extensions > Template Manager > gk_the_real_design_default - Click to edit template settings.
Then in template settings on the right > Advanced Settings > Css override " On " .

Code: Select all
span.itemImage img, span.catItemImage img { border:none; }


See you around...
User avatar
Platinum Boarder

GK User
Wed Feb 15, 2012 5:54 pm
very clear instructions
Thank you!
User avatar
Fresh Boarder

GK User
Wed Feb 15, 2012 6:18 pm
Remove border: complete
Remove click to enlarge: I can't found where.

SOS
User avatar
Fresh Boarder

GK User
Thu Feb 16, 2012 1:33 am
I am sorry i didn't see you wanted link removed. To remove link follow below.

Find File : \templates\gk_the_real_design\html\com_k2\templates\default\item.php
Find Lines: 147 to 152 which is below.
Code: Select all
           <div class="itemImageBlock">
               <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;" />
                  </a>
               </span>

Replace with below
Code: Select all
           <div class="itemImageBlock">
               <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>


See you around...
User avatar
Platinum Boarder

GK User
Thu Feb 16, 2012 9:17 am
thank you so much!
User avatar
Fresh Boarder

GK User
Thu Feb 16, 2012 5:00 pm
No problem at all.

See you around...
User avatar
Platinum Boarder


cron