Pixelwars Pixelwars Pixelwars

crafting wordpress themes

  • Home
  • Themes
  • Support
  • Blog
  • About
  • Contact

Larger Logo for Desktop, Smaller for Mobile

  • Posted in : Photographer
  • nirbho
    Participant
    8 August 2015 at 23:13
    #24232

    I want to have the logo set at 500px wide on desktop, but resized to 320px wide for mobiles.

    The larger logo doesn’t seem to auto-scale down. I thought this was the kind of thing that Bootstrap was meant to take care of?

    Any advice?

    serkan
    Moderator
    9 August 2015 at 16:07
    #24240

    Hi nirbho,
    You can use this css code for increasing your logo size (change the pixel how big you want;

    .site-title img { max-height: 100px; }
    nirbho
    Participant
    9 August 2015 at 17:52
    #24248

    Hi Serkan,

    Thanks for this, but I want to be able to have a very large logo for desktop, so when I increase the size using your code, it also increases for mobile, which makes it wider than the width of the mobile screen.

    How can I have it large for desktop and only 320px wide for mobile?

    Thanks!

    serkan
    Moderator
    9 August 2015 at 23:17
    #24257

    Hi nirbho,
    First code is working for mobile;

    .site-title img { max-height: 100px; max-width: 320px;  }

    Second code is working for desktop;

    @media screen and (min-width: 768px) {
    .site-title img { max-width: 320px; max-height: 320px; }
    }

    You can increase or decrease if you want ;)
    Cheers.

    fioralove
    Participant
    2 September 2015 at 05:18
    #25039

    Hi there,

    I tried using the code you provided for mobile but it also makes my desktop logo smaller. Any advice?

    Thank you!

    serkan
    Moderator
    2 September 2015 at 22:44
    #25062

    Hi,
    Of course first code will effect your desktop as well. Avoid from it, you have to add the custom css code for desktop as well.
    Thanks

    fioralove
    Participant
    3 September 2015 at 20:22
    #25081

    Thank you so much. I realized hours later after I submitted questions regarding CSS troubles that my server wasn’t functioning properly. That was what was causing the changes to not take affect.

    Cheers!
    Fiora

    serkan
    Moderator
    4 September 2015 at 15:57
    #25094

    You are welcome.

    Enrique Bernal
    Participant
    8 October 2015 at 02:33
    #25948

    Hi Serkan,

    Where should I include both css for my logo, same issue? I am newbie on css and wordpress.

    serkan
    Moderator
    8 October 2015 at 15:00
    #25962

    Hi @Enrique Bernal;
    You can check out this topic;
    http://www.pixelwars.org/forums/topic/how-to-use-custom-css-for-wordpress-themes/
    Thanks

    Enrique Bernal
    Participant
    8 October 2015 at 21:26
    #25983

    Thank you so much.

    serkan
    Moderator
    8 October 2015 at 22:42
    #25991

    You’re welcome, please don’t forget to rate the theme on themeforest if you liked it, thanks.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Photographer WordPress Theme

Photographer WordPress Theme

by pixelwars
Login and Registration Log in · Register

User Login

Log In
Register Lost Password

Search Forums

Advanced Search
© 2026 Pixelwars