Jump to content

Product Template : get rid of style width on thumbs_list_frame


Recommended Posts

I need to strip the inline 

style="width:..."

 from my product template's ul 

thumbs_list_frame

. For the life of me, I cannot find where this style is defined!

 

I'm using version 1.5.6.2 and tweaking a copy of the default theme.

 

What template is being called and from where? The inline style declaration isn't in the template files I've seen.

 

EDIT:

 

It's on my local machine.

 

Here's the URL for your info: 

http://localhost:8888/prestashop/index.php?id_product=1&controller=product

and the code is: 

 

<div id="thumbs_list">
<ul id="thumbs_list_frame" style="width: 4304px;">

 

Edited by mikeritter (see edit history)
Link to comment
Share on other sites

I need to strip the inline style="width:..." from my product template's ul thumbs_list_frame. For the life of me, I cannot find where this style is defined!

 

I'm using version 1.5.6.2 and tweaking a copy of the default theme.

 

What template is being called and from where? The inline style declaration isn't in the template files I've seen.

Link of your site please....?

Link to comment
Share on other sites

 

check file: /themes/default/js/product.js

 

there is a code like:

 

$('#thumbs_list_frame').width((parseInt((thumb_width) * $('#thumbs_list_frame >li').length)) + 'px');

So, this is inside 

function refreshProductImages()

Looks like jQuery is setting the inline style there.

 

Is the best solution to disable the call to that function or to somewhere disable thumbnail list? If the latter, where do I disable the thumbnail list?

Link to comment
Share on other sites

 

 

Is the best solution to disable the call to that function or to somewhere disable thumbnail list? If the latter, where do I disable the thumbnail list?

in my opinion, it's the best to leave it as it is.

this code is necessary to create correct width of the thubms list

width depends on number of pictures you've got for product

this is why it's based on javascript

Link to comment
Share on other sites

in my opinion, it's the best to leave it as it is.

this code is necessary to create correct width of the thubms list

width depends on number of pictures you've got for product

this is why it's based on javascript

 

 So, how do I disable the thumbnail list on product pages?

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...