What's New
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.
First , I can’t post in panda template or prestashop module. I’m stuck since it requires me to login but once I do , and go to the right forum, it considers I’m not login, so far the solution was o clic on “how to contact support topic to post from it.
My problem concerns the instagram module.
I use The ST instagram module on our old site , it is an old version of stinstagram
but it has an option that I can’t find in the latest version that I’m using in the preprod version of our futur site which uses panda1 theme :
Force non-square images to be square
Which would allow me to have all the image to be sized equally.
What is the solution to have the same result ?
Check the homepage of your site.
Here are changes I made.
1. Changed this code in the file /web/modules/stinstagram/views/js/instagram.js file
_thumbnail += ' <div class="ins_image_box">';
_thumbnail += ' <img id="'+ options.dflt.show + '-' + options.data.id +'-thmb" class="ins_image" src="'+ (options.dflt.image_size==2 ? options.data.standard_resolution : (options.dflt.image_size==1 ? options.data.thumbnail : options.data.low_resolution)) +'" alt="'+ options.data.caption +'">';
_thumbnail += ' </div>';
To
_thumbnail += ' <div class="ins_image_box ins_force_square" style="background-image:url('+options.data.standard_resolution+');" >';
_thumbnail += ' <img id="'+ options.dflt.show + '-' + options.data.id +'-thmb" class="ins_image" src="/upload/resolution_2.png" alt="'+ options.data.caption +'">';
_thumbnail += ' </div>';
2. Uploaded an image called “resolution_2” to the /upload/ folder.
3. Added a piece of css code to the Theme editor module.
You must be logged in to reply to this topic.