Different logo only for mobile / small screens

Well-designed restaurant Joomla template with parallax effect.
GK User
Wed Jan 07, 2015 11:43 am
Hi,

I would like the use a 3rd logo that i will make only for mobile view on small screens.
Image

This logo above is fine for ipad but on mobile its to big, so i need it only different on mobile view so it will look like this:

Image
User avatar
Expert Boarder

GK User
Wed Jan 07, 2015 11:53 am
What type of logo are you using right now?
User avatar
Moderator

GK User
Wed Jan 07, 2015 12:55 pm
Image, so i upload two logo's and selected those in the template settings.
User avatar
Expert Boarder

GK User
Sat Jan 10, 2015 9:45 am
Those images you upload are for header and menu not for mobile. To be able to create different image for mobile you would need to use css logo and add different logo with use of media queries for small screens.
User avatar
Moderator

GK User
Mon Jan 19, 2015 2:24 pm
I changed template settings so i will get logo from css. The small logo now is the same on all devices only the size is being changed if am right.

#gkLogoSmall.cssLogo {
background: url("../images/logo-small.png") no-repeat scroll center center / contain rgba(0, 0, 0, 0);
height: 70px;
margin-top: 3px !important;
width: 112px;
}

What should i add to template override to get a different logo on mobiles only?
Something with @media (max-width: 480px) ?
User avatar
Expert Boarder

GK User
Wed Jan 21, 2015 8:00 am
Code: Select all
@media (max-width: 480px){
#gkLogoSmall.cssLogo {
background: url("../images/logo-small.png") no-repeat scroll center center / contain rgba(0, 0, 0, 0);
height: 70px;
margin-top: 3px !important;
width: 112px;
}
}

in override.css
User avatar
Moderator

GK User
Sat Apr 04, 2015 3:30 pm
I added the code above to override.css and anable CSS override in my advanced options.
Unfortunately the added code has no affect on the mobile view and the logo stays the same on small resolutions.
URL: http://install.diesaftpresse.de/
User avatar
Senior Boarder

GK User
Mon Apr 06, 2015 9:57 am
@DiE SAFTPRESSE - I don't see anything in your override.css file.
User avatar
Moderator

GK User
Sat Jun 13, 2015 7:05 pm
I added
@media (max-width: 480px){
#gkLogoSmall.cssLogo {
background: url('/"/images/logo-small.jpg"') no-repeat scroll center center / contain rgba(0, 0, 0, 0) !important;;
height: 27px;
margin-top: 9px !important;
width: 113px;
}
}

to override.css and enable it in the advanced options (screenshot). I wonder why the css-file has no effect on the mobile logo.
User avatar
Senior Boarder

GK User
Mon Jun 15, 2015 10:01 am
Still your override.css file is empty:
http://install.diesaftpresse.de/templat ... erride.css
User avatar
Moderator

GK User
Mon Jun 15, 2015 7:53 pm
I deleted the old override.css and replaced it with a new one. Now the code is visible in http://install.diesaftpresse.de/templat ... erride.css but the problem stays the same.
User avatar
Senior Boarder

GK User
Fri Jun 19, 2015 8:19 am
Any suggestions ?
User avatar
Senior Boarder

GK User
Mon Jun 22, 2015 10:08 am
@DiE SAFTPRESSE - seems like your case is different. Original override corresponds to original topic and question.
Could you please create screenshots and describe exactly what you would like to do? Right now I see you have 2 different logos (one in header and one during the scrolling).
User avatar
Moderator

GK User
Tue Jul 28, 2015 10:25 pm
Ok, I try to explain. On screens wider than 640px I want to use the regular logo ("Logo_navi_reg.jpg"). When I change the width smaller than 640px the logo should change to a second one ("logo-small.jpg). But it doesn't currently.
My override-code:
Code: Select all
@media (max-width: 640px){
#gkLogoSmall.cssLogo {
background: url("../images/logo-small.jpg") no-repeat scroll center center / contain rgba(0, 0, 0, 0);
height: 27px;
margin-top: 3px !important;
width: 113px;
}
}
User avatar
Senior Boarder

GK User
Mon Aug 03, 2015 3:20 pm
You need to change image logo type to css logo type first.
User avatar
Moderator

GK User
Wed Aug 05, 2015 9:57 am
I'm not sure if I understand what you mean. It should work exactly as it does in the SteakHouse-template.
User avatar
Senior Boarder

GK User
Wed Aug 05, 2015 7:00 pm
Template settings- now you have image type, and you should start with css type - only this type of logo allows you to use override.css and define different images for different screen sizes.
User avatar
Moderator

GK User
Thu Aug 06, 2015 9:13 am
I changed logo type to css. Now the images on frontend switches to the default (SteakHouse) ones.
Where can I replace them with my own ones ?
User avatar
Senior Boarder

GK User
Mon Aug 10, 2015 6:49 am
That is exactly the outcome that was expected. CSS logo is defined in css not in backend. You need to replace
templates/gk_steakhouse/images/logo-small.png
and
templates/gk_steakhouse/images/logo.png
with your own files.
User avatar
Moderator

GK User
Sat Aug 29, 2015 1:23 pm
I replaced the images with my own ones. But I deleted the css-path in backend by accident. When I click on "Auwählen" (select) I can't find templates/gk_steakhouse/images/logo-small.png
User avatar
Senior Boarder

GK User
Wed Sep 02, 2015 2:53 pm
This fields are only important when you use image type logo.
User avatar
Moderator

GK User
Thu Sep 03, 2015 9:15 am
When I switch to "From CSS" the logos disappear in the template. I replaced the default with my one ones before, that's why I thought I have to define a path.
User avatar
Senior Boarder

GK User
Thu Sep 03, 2015 11:49 am
Could you please change to css logo and let me know - I'll check the page then?
User avatar
Moderator

GK User
Thu Sep 03, 2015 12:20 pm
Ok, I changed to css logo now.
User avatar
Senior Boarder

GK User
Fri Sep 04, 2015 8:29 am
The logos are now visible. The only issue is that the small logo disappears when screen-width smaller than 640 px.
User avatar
Senior Boarder

GK User
Mon Sep 07, 2015 7:52 am
If I go to:
http://install.diesaftpresse.de/
it gives me
"Error displaying the error page: Application Instantiation Error: Could not connect to MySQL."
error
User avatar
Moderator

GK User
Mon Sep 07, 2015 9:01 am
The correct URL is:
http://diesaftpresse.de/
User avatar
Senior Boarder

GK User
Mon Sep 07, 2015 5:24 pm
I guess there is something wrong with logo file itself:
http://diesaftpresse.de/templates/gk_st ... -small.jpg
User avatar
Moderator

GK User
Sun Sep 13, 2015 1:30 pm
It was an error in the database. I replaced it and it works now. Thank you for support, Cyberek.
User avatar
Senior Boarder

GK User
Mon Sep 14, 2015 7:42 pm
I'm glad you could find the issue.
Is there anything else I can help you with regarding this topic?
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.