Johnny2525 Posted September 7, 2016 Share Posted September 7, 2016 Trying to change the size and position of my logo on the mobile theme. I dont like the size and position of my logo on the mobile version of my store. I have been racking my brain trying to figure out how to change this. Where are the files that need to be change or do some need to be added? Please Help! Using PrestaShop 1.5.6.0 Link to comment Share on other sites More sharing options...
rocky Posted September 8, 2016 Share Posted September 8, 2016 You can use Firebug to select the element and find exactly which CSS is affecting the size of the image. Link to comment Share on other sites More sharing options...
Johnny2525 Posted September 15, 2016 Author Share Posted September 15, 2016 I have been fumbling around with trying to get Firebug to work on my mobile device and it wont work. Link to comment Share on other sites More sharing options...
Teapot Creative Posted September 16, 2016 Share Posted September 16, 2016 (edited) Hi Johnny, As you have caching on your store, it's hard to tell what file the css resides in, but my guess here would be the global.css file. You will not be able to do much about the size of your logo on mobile as the image currently is, as your logo is over 1000pixels wide and 140pixels high. Your solution here would be to make a version of the logo that only encapsulates your logo and leave the black edges to CSS via background-color on the container. This is because the styling by default will retain the proportions of your image so that it doesn't skew. Your other option would be to use jQuery to do an image replace under a certain resolution. Example: if ($(window).width() < 468) { $("#header_logo img.logo").attr("src", "http://newimagepath.com/image.png"); } Positioning you can use the following code in order to achieve this. header .fixed_width { margin: 0; width: 100%; } @media only screen and (max-width: 1000px) { #header_logo img { margin-top: 0; } } This will return the following results (see attachments). Many thanks, Ant. Edited September 16, 2016 by PrestashopUK (see edit history) 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