Tagged: Desktop, different logo, phone, tablet
-
AuthorPosts
-
December 3, 2014 at 12:44 am #361879
Hello,
I want to use one logo on desktop and another logo on tablets and phones. For example, on desktop I want to use animated logo, and on tables and phones just plain simple logo.
How I can do that?
- This topic was modified 10 years ago by bogosavljev.
December 3, 2014 at 6:33 pm #362340Hey bogosavljev!
Try this out, https://kriesi.at/support/topic/using-a-different-logo-size-on-mobile-devices-possible/.
Cheers!
ElliottDecember 3, 2014 at 9:24 pm #362487This reply has been marked as private.December 4, 2014 at 6:08 pm #363064Hey!
Try an absolute path like so.
<?php echo avia_logo('http://www.yoursite.com/images/new_big_logo_100.svg', $addition, 'strong', true); ?>
Best regards,
Elliott- This reply was modified 10 years ago by Elliott.
December 4, 2014 at 10:43 pm #363287This reply has been marked as private.December 5, 2014 at 5:54 am #363427Hi!
Please provide a link to the website. We would like to check it. I don’t think svg format image will work. Please use jpg or png format images.
Best regards,
IsmaelDecember 5, 2014 at 8:19 pm #363799This reply has been marked as private.December 5, 2014 at 8:20 pm #363800This reply has been marked as private.December 6, 2014 at 1:33 am #363964Hey!
Oh. My bad. Anyway, please try this:
@media only screen and (max-width: 767px) { .logo a span { display: none !important; } .responsive .logo a { background: url('http://dev.bogosavljev.com/wp-content/themes/quince-child/images/new_big_logo_100.svg'); background-repeat: no-repeat; background-size: 100%; } }
This will remove the original logo image then assign the mobile logo as background.
Best regards,
IsmaelDecember 6, 2014 at 1:37 am #363966This reply has been marked as private.December 6, 2014 at 1:43 am #363968This reply has been marked as private.December 6, 2014 at 8:11 pm #364132This reply has been marked as private.December 9, 2014 at 12:14 am #365063Hey!
The code works when i tested it live on your site – http://screencast.com/t/IOehxv9xMb
Best regards,
JosueDecember 9, 2014 at 7:39 pm #365519This reply has been marked as private.December 10, 2014 at 1:42 am #365764Hey!
Try changing the media query max-width value:
@media only screen and (max-width: 1024px) { .logo a span { display: none !important; } .responsive .logo a { background: url('http://dev.bogosavljev.com/wp-content/themes/quince-child/images/new_big_logo_100.svg'); background-repeat: no-repeat; background-size: 100%; } }
Cheers!
JosueDecember 10, 2014 at 2:24 am #365781Hey!
This is working well!
Thanks!
-
AuthorPosts
- The topic ‘Use different logo on tablets and phones?’ is closed to new replies.