Jump to content

[SOLVED] How to turn off thickbox?


Recommended Posts

Dear all,

In my lay-out I have no need for thickbox (or likewise boxes). I would like to know where to disable it. In product.tpl I've disabled the following line:

getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="{if !$jqZoomEnabled}thickbox{/if} {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">



This way it doesn't pop-up anymore, but I'd like to know how to get rid of the 'pointing finger' when the mouse hovers over the image-block. I want it to remain a simple pointer. I think I should change something in this part of the code of product.tpl, but I'm not sure what:

       {if $have_image}
getImageLink($product->link_rewrite, $cover.id_image, 'large')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic"/>
       {else}
name|escape:'htmlall':'UTF-8'}" />
       {/if}



If someone could reach me a hand here, I'd be very greatful!

Kind regards,
ibo

Link to comment
Share on other sites

You need to go into the global.css stylesheet in the theme directory and find:

#primary_block #image-block img#bigpic {
cursor:pointer;
height:350px;
width:350px;
}

and change to:

#primary_block #image-block img#bigpic {
cursor:default;
height:350px;
width:350px;
}

Link to comment
Share on other sites

  • 2 weeks later...

You're welcome disarci,

I still have a question myself though. With the above given adaption of the code, I turn off not just the thick-box but the thumbnails under the big image as well.

The only thing I'd like is to have the pop-up of the thickbox disabled, since my product images are large enough and don't need an extra thick-box magnification.

Anyone a solution to this?

Kind regards,
iboMonkey

Ps. for reference: webshop

Link to comment
Share on other sites

  • 1 month later...
  • 6 months later...
  • 5 years later...

Ciao a tutti, riapro questo topic per chiedere appunto delucidazioni su questo problema, ho installato il tema STING in Prestashop e dato che sfrutta immagini grandi già di default non ho bisogno dell'apertura a click della galleria (thickbox) ma solo che al passaggio del mouse (e click) cambi l'immagine della miniatura anche nella videata principale.

 

E' fattibile? Ho cercato altri post ma nel file product.tpl non ho trovato il testo di codice corrispondente.

 

Grazie in anticipo, Davide.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...