Jump to content

Show image only mobile


Recommended Posts

Hi,
I want insert in a .tpl file of module Prestashop 1.7.1.0 an image that i want show ONLY in mobile version of site. 

I tried:

<div class="visible-xs">
  <img src="...etc "/>
</div>

but image is visible in all version of my site.
How i Can?

Thank you!

Link to comment
Share on other sites

NemoPS is a expert! CSS hacks are greater then tpl mods simply cause of auto update. Any mods you do might be wiped on update.

I would personally use the banner  module  for this and display none it  on anything not mobile via Media queries just like NemoPS said.

That way you don't add tpl stuff and you survive an upgrade

 

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