Jump to content

ThemeConfigurator : Responsive : Image not responsive in footer : Fix?


BrainSuperGlue

Recommended Posts

Hi,

 

I'm using the default bootstrap theme, all good except. at the bottom in the footer, I've placed an image.

When the screen is full width the page looks fine, yet when I make the page width smaller, moving into mobile width, the image is not responsive unlike the rest of the page, so the image doesn't shrink.

I've seen a YouTube video that says if you have the standard Prestashop html editor, you can add a line that says

class="img-responsive"

That's fine as long has you have that editor.

As the image was added with Preferences/Themes/ThemeConfigurator/ "Hook Footer" , there isn't anywhere to edit the html to add the above class.

I just don't know either which file to edit to add it manually.

Any ideas?

Many thanks

BSG

Link to comment
Share on other sites

You didn't mention your prestashop version in use.

And a screenshot of the image could be helpful. With V 1.6. we don't have images in our footer.

 

What editor concerns:

In principle you can use any text editor. If you don't have one, I'd recommend notepad++. It's easy to handle and has syntax highlighting for many languages.

The file in question might be footer.tpl.

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

You didn't mention your prestashop version in use.

And a screenshot of the image could be helpful. With V 1.6. we don't have images in our footer.

 

What editor concerns:

In principle you can use any text editor. If you don't have one, I'd recommend notepad++. It's easy to handle and has syntax highlighting for many languages.

The file in question might be footer.tpl.

Hi Scully, the version of Prestashop is 1.6

 

I don't understand "With 1.6 we don't have images in our footer"

 

I use Theme Configurator and the footer section is all about adding images to the footer.

post-1227072-0-53452600-1502331812_thumb.jpg

 

As you can see, when the web page is open to full width, the image is in the correct position.

post-1227072-0-74506600-1502331792_thumb.jpg 

 

When the web page is set to limited width, the image doesn't responsively shrink to fit the width, it stays at its native width.

post-1227072-0-12078200-1502331801_thumb.jpg

 

I had checked footer.tpl. It doesn't contain the theme configurator settings. You can add the responsive line to it with the image but it will literally take over the whole of the footer but the image does shrink when the page is limited width. That doesn't solve the problem though. It needs to be in the design placement it already is.

 

If I do an Inspect on the webpage for the picture it shows the following, it's from this I can't work out which file to edit.

post-1227072-0-70482800-1502332065_thumb.jpg

 

Many thanks

BSG

Link to comment
Share on other sites

I think img-responsive isn't intended to handle such large images there. It's difficult to say without having a link to your shop.

Hi Scully,

 

So I was thinking on this, the responsive side pictures on the site are of similar sizes to the non responsive map in the footer.

 

All of these pictures are controlled by the ThemeConfigurator.

 

post-1227072-0-23284500-1502580278_thumb.jpg

 

I've attached the code for those side pictures and it doesn't look to have the img-responsive tag there but does state "100%" width and height which would still work given the smaller dimensions of the mobile window.

 

post-1227072-0-00442600-1502580289_thumb.jpg

 

The link to the site BTW is this : https://secondtimearoundcharities.org/ecomm/index.php

Link to comment
Share on other sites

But other pictures are not used at the same place. So it's a different story. And since you have enabled CCC for CSS files, we can't debug your site.

I'd try with adding max-width: 100% for the map.

Hi Sully,

 

For summary then, there is a configuration file for displaying images on the footer that the ThemeConfigurator uses. That the creation of the display code is created at runtime and there isn't one prebuilt file that is just contains the code posted for displaying the map on the footer. The key is finding and changing the image display code that ThemeConfigurator pulls in and add max-width 100% for the map. This could either be C++ or TPL or CSS. Is that a fair assumption?

 

I've also turned off all CCC if you'd like to take a look.

 

Many thanks for the help.

 

BSG

 

 

 

 

Link to comment
Share on other sites

I haven't investigated all in detail, since I don't use the configurator for images at all. The only CSS class applied is 

class="item-link"

You could try to add a CSS rule to global.css or theme3.css for this class. But it might be used somewhere else as well. If this doesn't work, you had to adapt the configurators PHP code in order to apply a special class for your case.

 

Or as last option: Don't use the theme configurator and edit the footer.tpl accordingly. There you have every option of adding your own/new CSS rules.

Edited by Scully (see edit history)
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...