mikeritter Posted February 21, 2014 Share Posted February 21, 2014 (edited) 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 February 21, 2014 by mikeritter (see edit history) Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted February 21, 2014 Share Posted February 21, 2014 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 More sharing options...
mikeritter Posted February 21, 2014 Author Share Posted February 21, 2014 running on my local machine Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted February 21, 2014 Share Posted February 21, 2014 running on my local machine Can you please share screen shot? Link to comment Share on other sites More sharing options...
mikeritter Posted February 21, 2014 Author Share Posted February 21, 2014 (edited) Screen shot of what? That's irrelevant. I just need to know where the shop is injecting that style declaration so I can override/delete it. Edited February 21, 2014 by mikeritter (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 21, 2014 Share Posted February 21, 2014 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'); 1 Link to comment Share on other sites More sharing options...
mikeritter Posted February 21, 2014 Author Share Posted February 21, 2014 how do i upload a pic? Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted February 21, 2014 Share Posted February 21, 2014 I think you are not able to view thumb slider in product detail page, Right? Link to comment Share on other sites More sharing options...
mikeritter Posted February 21, 2014 Author Share Posted February 21, 2014 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 More sharing options...
mikeritter Posted February 21, 2014 Author Share Posted February 21, 2014 I think you are not able to view thumb slider in product detail page, Right? I am trying to override settings to make a cleaner theme. I find the inline styles are just messy. Link to comment Share on other sites More sharing options...
vekia Posted February 21, 2014 Share Posted February 21, 2014 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 More sharing options...
mikeritter Posted February 21, 2014 Author Share Posted February 21, 2014 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 More sharing options...
vekia Posted February 21, 2014 Share Posted February 21, 2014 i probably missed something... sorry you just want to disable thumbnails ? Link to comment Share on other sites More sharing options...
mikeritter Posted February 21, 2014 Author Share Posted February 21, 2014 i probably missed something... sorry you just want to disable thumbnails ? Not necessarily. I want to override the default setting with the embedded inline style, but if that isn't feasible I want to disable the thumbnail list. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now