Why do I need a png and a svg file for the logo?

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Mar 23, 2014 6:09 pm
Reply with quote
Report this post
Please elaborate why a PNG and an SVG file is needed for the logotype.

What if I do not have/use SVG file?
User avatar
Gold Boarder

GK User
Sun Mar 23, 2014 6:17 pm
Reply with quote
Report this post
Hi, you don't have to.. just use Image feature and upload your own logo image.
That's all.

General Guide: http://www.gavick.com/documentation/joo ... -add-logo/
User avatar
Platinum Boarder

GK User
Mon Mar 24, 2014 11:27 am
Reply with quote
Report this post
We are using SVG images for log, because it looks much better on retina displays. The PNG image is for the fallback purpose on the older browsers.
User avatar
Administrator

GK User
Mon Mar 24, 2014 3:51 pm
Reply with quote
Report this post
I have some problem with the logotype.

I am using the CSS function to get the logo, but have not managed to get it working and I discovered that it only works with SVG files (?)

Please note that I am using the following addition to the CSS file:

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


Could the code above have something to do with it?
User avatar
Gold Boarder

GK User
Mon Mar 24, 2014 3:59 pm
Reply with quote
Report this post
Yes, this code is responsible for the logo image display - you are using most probably the browser with SVG support so the second rule is executed on your page.
User avatar
Administrator

GK User
Mon Mar 24, 2014 7:54 pm
Reply with quote
Report this post
I am not sure how to interpret this :oops:
Please elaborate so that I can test alternative ways.

dziudek wrote:Yes, this code is responsible for the logo image display - you are using most probably the browser with SVG support so the second rule is executed on your page.
User avatar
Gold Boarder

GK User
Mon Mar 24, 2014 11:04 pm
Reply with quote
Report this post
I mean that the CSS selectors prefixed with fragment:

Code: Select all
.svg


will work only in the browser which have support for the SVG graphics display.

So in this case below code:

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


will be used only on the old browsers without SVG support, and the following code:

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


will work on modern browsers and will guarantee that the displayed image will be sharp on the screens with high resolution (retina displays).
User avatar
Administrator

GK User
Tue Mar 25, 2014 10:57 am
Reply with quote
Report this post
OK. Can I in some way control to say that I want only to use the PNG file ?
User avatar
Gold Boarder

GK User
Tue Mar 25, 2014 11:17 am
Reply with quote
Report this post
Yes, you can - you should remove all CSS rules prefixed with:

Code: Select all
.svg


From styleX.css and template.css files.
User avatar
Administrator

GK User
Tue Mar 25, 2014 12:56 pm
Reply with quote
Report this post
I must say that it is a bit tricky to understand all this for me. I have now created a SVG file and edit the correct CSS files and ... still I can not get the logotype appearing.
User avatar
Gold Boarder

GK User
Wed Mar 26, 2014 3:57 pm
Reply with quote
Report this post
Please provide us your website URL - without it I'll unable to help you.
User avatar
Administrator

GK User
Wed Mar 26, 2014 6:09 pm
Reply with quote
Report this post
I will send you a PM as my site is not live yet.

dziudek wrote:Please provide us your website URL - without it I'll unable to help you.
User avatar
Gold Boarder

GK User
Wed Mar 26, 2014 6:50 pm
Reply with quote
Report this post
Your problem is caused by fact that image templates/gk_news2/images/style6/8.svg is not existing on your server.
User avatar
Administrator

GK User
Wed Mar 26, 2014 9:18 pm
Reply with quote
Report this post
Sorry about that :oops:
I change it just before I sent the PM to you and forgot to alter it. Anyhow, the problem still exist. I have now changed it back to the correct image files which exist on the server. Still no logo appears. :?


dziudek wrote:Your problem is caused by fact that image templates/gk_news2/images/style6/8.svg is not existing on your server.
User avatar
Gold Boarder

GK User
Thu Mar 27, 2014 12:41 pm
Reply with quote
Report this post
Your image displays correctly but it is too big - it should be 124 x 40px your is over 300 x 100px - so it displays only the blank space.

The solution can be adding the following code at the end of any CSS file:

Code: Select all
.svg #gkLogo.cssLogo, .svg #gkLogoSmall.cssLogo {
background-size: cover!important;
}


Please remember to refresh your browser cache after this operation :)
User avatar
Administrator


cron