How to remove zoom AND Lightbox effect

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon May 18, 2015 8:55 pm
Reply with quote
Report this post
Hello,

i searched for a long time to disable the zoom effect on article pictures.

I solved it with the following code in the override.css:

Code: Select all
article#k2Container .itemImageBlock img:hover {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
}


But how can i disable the lightbox or popup effect?

Thanks for your help!

Garthi
User avatar
Expert Boarder

GK User
Mon May 18, 2015 9:16 pm
Reply with quote
Report this post
Hi,
from K2 item?
You have to edit file : templates\gk_mo\html\com_k2\templates\default\item.php

find:
<div class="itemImageBlock"> <a class="itemImage modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">


and remove whole <a ....> and </a>
User avatar
Platinum Boarder

GK User
Wed May 20, 2015 4:12 pm
Reply with quote
Report this post
Perfect!

It works... Thanks a lot!

Garthi
User avatar
Expert Boarder

GK User
Wed May 20, 2015 10:19 pm
Reply with quote
Report this post
You don't have to worry about updates.
But you have to consider important topic, please check if you for sure need K2 items, using it may slow down your site, because Joomla have to load so many extra code compared to the default articles code.
User avatar
Platinum Boarder

GK User
Thu May 21, 2015 10:20 am
Reply with quote
Report this post
Hey Oscar E!

could you help me with my next problem :-)

I send you a screenshot from my iphone. How can i correct the design and the position of the menu "button" for the "iphone" responsive design.


Thanks a lot
User avatar
Expert Boarder

GK User
Fri May 22, 2015 10:17 pm
Reply with quote
Report this post
Ok, please try this small fix

#aside-menu-toggler, #mobile-menu-toggler, #static-aside-menu-toggler {
margin: 30px 0 0 !important; }

I guess it should help with [=] menu icon.
User avatar
Platinum Boarder

GK User
Tue May 26, 2015 11:12 am
Reply with quote
Report this post
Hey Oscar,

with "10px" it works :-)

with "30px" i see only one bar.

Another little problem: Where can i change the size and position for the logo (ONLY for tablet and iPhone)?

Thanks a lot!!!

Garthi
User avatar
Expert Boarder

GK User
Wed May 27, 2015 10:39 pm
Reply with quote
Report this post
You have to edit mobile.css and tablet.css file,
if there is such a logo class so it's quite easy, if not you have to using Firebug or similar tool check class name and there.
I have to see URL to help more.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.