Change size of logo according to width screen

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jun 19, 2013 3:34 pm
Reply with quote
Report this post
Hi,
Is it possible to change the width of my logo according to the width of the screen?
I have a very long logo and if i place it it looks pretty bad on a iphone...

Kind regards.
User avatar
Junior Boarder

GK User
Wed Jun 19, 2013 3:40 pm
Reply with quote
Report this post
You can specify different logo image in following css files located in templates css folder.

Code: Select all
mobile.css
tablet.css

Css for Css logo option
Code: Select all
#gkLogo.cssLogo {
    background: url("../images/logo.png") no-repeat scroll 0 0 transparent;
    height: 30px;
    width: 154px;
}


See you around...
User avatar
Platinum Boarder

GK User
Wed Jun 19, 2013 4:41 pm
Reply with quote
Report this post
Thank you, that worked!

Do you also happen to know how the set the width of the menu? Now the menu goes very quick to de dropdown version.
User avatar
Junior Boarder

GK User
Thu Jun 20, 2013 3:11 am
Reply with quote
Report this post
Both website menu and mobile menu are rendered in html output, they are kept hidden by using css in available css files.

Code: Select all
mobile.css
small.tablet.css
tablet.css
template.css


Following are ids of each menu.
Code: Select all
#gkMobileMenu
#gkMainMenu


So if its a mobile.css which is loaded when certain screensize is met then following happens. Hides main menu then loads mobile menu.
Code: Select all
#gkMainMenu { display:none;}
#gkMobileMenu { display:block;}


If you don't want to hide mainmenu in mobile css then open the file and change it around so hide mobilemenu and remove lines to Mainmenu so it will use css from main template.css file.

Code: Select all
#gkMobileMenu { display:none;}


See you around...
User avatar
Platinum Boarder

GK User
Thu Jun 20, 2013 8:23 am
Reply with quote
Report this post
Also worked! Thank you

Yet another question. All my images have a diffrent hight. How can I set a height for all my images in category (overview of all products and categories) en product page (the thumbnails under the big image)?

Kind regards
User avatar
Junior Boarder

GK User
Thu Jun 20, 2013 2:14 pm
Reply with quote
Report this post
If you mean "SHOPS & TRENDS" module in frontpage that would be

Code: Select all
.gkNspPM-ProductGallery .gkImagesWrapper > div img { height: 200px; width 200px;}


In Category View

Code: Select all
.browseProductImage {height: 200px !important;width: 200px !important;}


Change sizes to your requirements.
User avatar
Platinum Boarder

GK User
Thu Jun 20, 2013 3:32 pm
Reply with quote
Report this post
Hi norman,

I want the image to be vertical and horizontal align within a box of 200x200px. So all images have same height and width and all the productnames start at the same heigth.
User avatar
Junior Boarder

GK User
Thu Jun 20, 2013 3:35 pm
Reply with quote
Report this post
Please post your website link as it would be easier to check it in your site rather then guessing or trying to create same site all over in our server.

See you around...
User avatar
Platinum Boarder

GK User
Thu Jun 20, 2013 3:42 pm
Reply with quote
Report this post
User avatar
Junior Boarder

GK User
Thu Jun 20, 2013 3:48 pm
Reply with quote
Report this post
Please use following css code.

Code: Select all
.category-view img {height: 200px!important;}
.browseProductImage {height: 100px!important;}


See you around...
User avatar
Platinum Boarder

GK User
Thu Jun 20, 2013 4:06 pm
Reply with quote
Report this post
Thank you so much!
User avatar
Junior Boarder

GK User
Thu Jun 20, 2013 4:21 pm
Reply with quote
Report this post
No problem at all, see you around...
User avatar
Platinum Boarder

GK User
Thu Jun 20, 2013 5:01 pm
Reply with quote
Report this post
Hi Norman,

The 200px modification isn't yet good. Now it streches the images. Is there a way to maybe do this (but then in real code):
<div width:200px; height:200px; algin: absolute middle;>
IMAGE
</div>
Name product
User avatar
Junior Boarder

GK User
Thu Jun 20, 2013 5:08 pm
Reply with quote
Report this post
Real code or css code effect would be same. You are using a general image size in css code so you have to resize your image sizes so they look ok or you need to modify php files and use another wrapper around image so you can give that a size so your product names etc looks aligned. Obviously then it might need adjusting in other css which we can't do.

So easiest option right now use same image size in your products or category images.

See you around...
User avatar
Platinum Boarder

GK User
Thu Jun 20, 2013 5:20 pm
Reply with quote
Report this post
Can you help me a bit further? Because this template is for an existing site with more then 3000 products. So new images isn't the best solution for me.
User avatar
Junior Boarder

GK User
Thu Jun 20, 2013 7:59 pm
Reply with quote
Report this post
If you use 100px in category products view then it looks ok.

Code: Select all
.browseProductImage {height: 100px!important;}
User avatar
Platinum Boarder


cron