How to manage logotytpe when scolling downwards

Rate this topic: Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.6.00 out of 6 based on 1 vote(s)
GK User
Tue Mar 18, 2014 9:57 pm
Reply with quote
Report this post
Can I define another logotype appearing when a user is scrolling downwards on my site?

Meaning that the menu changes to a fixed upper menu. I would like to use in this upper menu a different logo. Is this possible?
User avatar
Gold Boarder

GK User
Thu Mar 20, 2014 12:06 am
Reply with quote
Report this post
Hello,

You can try to set a different background-image for the following selector (SVG version):

Code: Select all
.svg #gkLogoSmall.cssLogo


and PNG version using the following selector:

Code: Select all
#gkLogoSmall.cssLogo
User avatar
Administrator

GK User
Thu Mar 20, 2014 12:15 am
Reply with quote
Report this post
Great! However, please elaborate further where this code should be inserted and how to specify the "new" logo.
User avatar
Gold Boarder

GK User
Thu Mar 20, 2014 12:25 am
Reply with quote
Report this post
You have to add it at the end of the styleX.css file (X depends from style which you are using).

Code: Select all
#gkLogoSmall.cssLogo {
background-image: url('../images/styleX/logo_small.png')!important;
}
.svg #gkLogoSmall.cssLogo {
background-image: url('../images/styleX/logo_small.svg')!important;
}


Please remember to replace the X in the path to image in the above CSS code to your style number.
User avatar
Administrator

GK User
Thu Mar 20, 2014 10:50 pm
Reply with quote
Report this post
Thank you! I will try and let you know if it works. B)

dziudek wrote:You have to add it at the end of the styleX.css file (X depends from style which you are using).

Code: Select all
#gkLogoSmall.cssLogo {
background-image: url('../images/styleX/logo_small.png')!important;
}
.svg #gkLogoSmall.cssLogo {
background-image: url('../images/styleX/logo_small.svg')!important;
}


Please remember to replace the X in the path to image in the above CSS code to your style number.
User avatar
Gold Boarder


cron