Jump to content

Logo space size - PS 1.7.1


justoneweek

Recommended Posts

you have the file

 

themes/classic/assets/css/theme.css

 

you can set the logo dimmensions here

 

#header .logo {
  1. max-width100%;
  2. width408px;
}
 
and make the font size smaller
 
.top-menu a[data-depth=0] {
  1. font-weight400;
  2. padding.1875rem .625rem .375rem;
  3. font-size12px;
}
 
 
  • Like 1
Link to comment
Share on other sites

Hi Ambassadors,

I did exactly what you told me, just with 300px width:

 

1. max-width: 100%;

2. width: 300px;

 

But if I upload a logo image width 300px the result is this: http://sunglasses.land/ :/

 

 

 

Many thanks!!

 

Hi,

 

You forgot to add a semicolon after "max-width: 100%"

 

This is how it looks:

 

 

#header .logo {

  max-width100% width: 300px;

}

 

And this is how it should be:

 

#header .logo {

  max-width100%;

  width300px;

}
Edited by catalin.scaesteanu (see edit history)
  • Like 1
Link to comment
Share on other sites

 

I think I have some problems with the editor. With notepad++ I do not see the code indented: http://imgur.com/a/V8Ean
do you think is normal? do you any tips for to see .css indented?
 
Many many thanks!

 

 

Hi,

 

There's nothing wrong with your editor. What you're seeing there is a minified version of the file, meaning the file is stripped of spaces to reduce it's file size. In short it's a good thing.

The developers at Prestashop now use a tool called webpack, which among other things, compiles multiple scss files into one file called "theme.css", which in the end gets minified to reduce file size.

The correct way to change the css would be to change the development version of the scss file and then compile everything again using webpack. You might want to do some reading about this if you want to follow this path.

 

However there are other ways you can do this.

One way would be by downloading the theme.css file from your server, and using a tool such as this: http://tools.bin63.com/javascript-minifier-unminifier you can upload it and unminify it, then edit it locally and once you've finished, upload it again to minify it. Once you're done upload the minified version back to your server.

 

Hope this helps.

  • Like 1
Link to comment
Share on other sites

If that's what you see in attached it was already set that way  :(

 

Many thanks!

 

Did you press the "Clear cache" (Pulisci la cache) button from the top right corner?

Also you should clear your browser's cache, or try opening your website in incognito mode.

 

LE: Just checked your website and it shows width: 300px; so it works :)

Edited by catalin.scaesteanu (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

 

you have the file

 

themes/classic/assets/css/theme.css

 

you can set the logo dimmensions here

 

#header .logo {
  1. max-width100%;
  2. width408px;
}
 
and make the font size smaller
 
.top-menu a[data-depth=0] {
  1. font-weight400;
  2. padding.1875rem .625rem .375rem;
  3. font-size12px;
}
 
 

 

Thanks PrestaShop Legend. Works like a charm :)

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