-
AuthorPosts
-
October 1, 2014 at 6:22 pm #328355
Is there a way of using a different logo for mobile view? When I use the horizontal version, it overlaps the menu on an iphone.
See image for example:
https://dl.dropboxusercontent.com/u/52916400/dovmobile.PNGOctober 1, 2014 at 6:25 pm #328356Hey erik!
Please add following code to Quick CSS
@media only screen and (max-width: 480px) { .logo img { opacity: 0; } .logo a { background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png); background-repeat: no-repeat; background-size: contain; background-position: 50% 50%; }}
Cheers!
YigitOctober 1, 2014 at 6:36 pm #328364Great!
And how should I address the custom text in the header that is behind the logo?
https://kriesi.at/support/topic/how-do-we-get-our-business-information-in-the-header-opposite-the-logo/October 1, 2014 at 6:40 pm #328370Hey!
You can use following code
@media only screen and (max-width: 480) { .custom_info { display: none; }}
That code would remove it on mobile. What exactly would you like to do?
Cheers!
YigitOctober 1, 2014 at 8:21 pm #328449I have to tell you, you are awesome. I just put the info in the mobile logo – so now, I just need to left align it.
And if there’s a way to get the transparency back for mobile, that would be awesome.
See here:
https://dl.dropboxusercontent.com/u/52916400/mobilelogo.PNGOctober 1, 2014 at 8:30 pm #328454Hi!
Please add following code to Quick CSS as well
@media only screen and (max-width: 480px) { strong.logo { margin-left: -65px!important; } .html_header_top.html_bottom_nav_header #header_main { position: absolute; width: 100%; } .responsive #main { padding-top: 95px !important; }}
Best regards,
YigitOctober 2, 2014 at 7:20 pm #329156So close!
There’s a midway width that seems to look funny. When I turn my iphone horizontal, the header turns white (loses the transparency). The custom info should not show on this small size either.
The ipad and computer display is excellent – it just this one semi-small view that is left.
https://dl.dropboxusercontent.com/u/52916400/mobilescreenwhite.PNGOctober 2, 2014 at 8:02 pm #329189Hey!
Please change the code to following one
@media only screen and (max-width: 768px) { strong.logo { margin-left: -65px!important; } .html_header_top.html_bottom_nav_header #header_main { position: absolute; width: 100%; } .responsive #main { padding-top: 95px !important; }}
Regards,
YigitOctober 3, 2014 at 10:31 pm #329916Yigit, thank you so much for your help. It’s very very close, but not working quite right. When you go to our website (see link above) you will see that the transparency turns to white if you make the browser narrow and the custom info continues to show.
What I would like to happen is this:
1) The transparency should always be there. No white header no matter what size. How do I never have a white header?
2) If the browser shrinks to the point where the menu changes to vertical mobile style, the custom_info should go away because it doesn’t fit with the logo at that point.Here is the current css:
@media only screen and (max-width: 480px) {
.logo img { opacity: 0; }
.logo a { background-image: url(http://dovshoneman.com/wp-content/uploads/Dov-Logo-Mobile-Small.png); background-repeat: no-repeat; background-size: contain; background-position: 50% 50%; }
strong.logo { margin-left: -65px!important; }
.html_header_top.html_bottom_nav_header #header_main { position: absolute; width: 100%; }
.responsive #main { padding-top: 95px !important; }
.custom_info { display: none; }
}@media only screen and (max-width: 768px) {
strong.logo { margin-left: -65px!important; }
.html_header_top.html_bottom_nav_header #header_main { position: absolute; width: 100%; }
.responsive #main { padding-top: 95px !important; }}Thank you!
October 5, 2014 at 10:56 am #330439Hey!
For background transparency, add the following to Quick CSS:
@media only screen and (min-width: 768px) and (max-width: 989px) { .responsive #top .header_bg { opacity: 0.3; } }
To remove custom_info for mobile devices, add the following to Quick CSS:
@media only screen and (max-width:767px) { .custom_info{ display:none!important; } }
Best regards,
ArvishOctober 9, 2014 at 7:51 pm #333422Hello I’ve tried using the same code CSS code – it works well on all pages except the home page – both the full size logo is loaded and a smaller is overlaid on it – any ideas how to fix that ?
@media only screen and (max-width: 480px) { .logo img { opacity: 0; } .logo a { background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png); background-repeat: no-repeat; background-size: contain; background-position: 50% 50%; }}
rcgauto.staging.wpengine.com
- This reply was modified 10 years, 2 months ago by rcgroup.
October 10, 2014 at 1:40 am #333569Hi!
@rcgroup Please add following code to Quick CSS as well@media only screen and (max-width: 767px) { .responsive #top .av_header_transparency.av_alternate_logo_active .logo a > img { opacity: 0; }}
Cheers!
YigitOctober 10, 2014 at 2:37 am #333593Hey
That sort of works – except now on the home page the logo disappears at certain width (when phone is held horizontally for example)
This seems to only affect the home page
October 11, 2014 at 7:04 am #334155Hi!
I would like to check the page but this link isn’t working, http://www.rcgauto.staging.wpengine.com. (hosted on WPengine)
Regards,
IsmaelOctober 11, 2014 at 7:47 am #334178October 14, 2014 at 6:36 am #335374Hi!
Try adding the following code to your CSS:
@media only screen and (max-width: 767px){ .av_header_transparency.av_alternate_logo_active .logo a > img { opacity: 1; } }
Although the image is not being loaded. Are you using a plugin to protect your images? If so, disable it and check. Otherwise, check if the image URL is correct.
Regards,
ArvishJanuary 7, 2015 at 2:33 pm #376136This reply has been marked as private.January 7, 2015 at 2:38 pm #376138January 7, 2015 at 3:31 pm #376183This reply has been marked as private.January 7, 2015 at 3:36 pm #376184Hey!
Code works fine but background image you uploaded cannot be found. Please check your link once again.
Regards,
YigitJanuary 7, 2015 at 6:10 pm #376298This reply has been marked as private.January 7, 2015 at 6:25 pm #376306This reply has been marked as private.January 7, 2015 at 7:26 pm #376347Hey!
Do you mind creating a temporary admin login and posting it here privately so we can look into it?
Cheers!
YigitJanuary 7, 2015 at 11:15 pm #376524This reply has been marked as private.January 8, 2015 at 1:11 am #376581January 8, 2015 at 2:24 am #376594This reply has been marked as private. -
AuthorPosts
- The topic ‘Using a different logo for mobile view?’ is closed to new replies.