New Landing How can we help? Themeforest Theme Support Neighborhood Different logo on mobile

Viewing 8 posts - 1 through 8 (of 8 total)
  • #89684
    travwaite
    Member
    Post count: 21

    The main page logo doesn’t work on mobile devices so I’m trying to work out how to get a different logo in the header when viewed on mobile devices.

    I’ve found a previous post on this forum (http://support.swiftideas.net/forums/topic/mobile-header-2/) so I’m assuming it’s possible, but I’ll need a little help to make it happen. Is there a simple css fix?

    Thanks

    #89762
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You will need to use this css:

    @media only screen and (max-width: 480px) { 
    #logo img {
    display: none!important;
    }
    #logo {
    background: transparent url('http://dante.swiftideas.net/wp-content/uploads/2013/10/[email protected]') no-repeat center left;
    background-size: 92px 21px;
    width: 92px;
    }
    #logo a {
    height: 40px;
    color: #fff;
    }
    }

    You will need to change the image path to the one of your image, and also change any widths and height properties to the size of your logo

    – Kyle

    #90100
    travwaite
    Member
    Post count: 21

    Thanks Kyle. A few more things:

    1. I managed to get the logo up, but for some reason part of it is cut off. Any fixes for that?

    2. How would I link the logo back to the home page?

    3. I need to get the menu icon to align left of the logo and the cart/search to align on the right. Hopeful of some simple css fixes!

    Appreciate the help!

    The web address is http://www.topdrawerlingerie.com.au and should divert to /mobile on handheld devices.

    #90118
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    1) You need to adjust the background-size to fit your image

    2) It should already do so?

    3) Unfortunately this layout is not possible, we only added this to our latest theme Cardinal

    That link doesn’t seem to be using our theme?

    – Kyle

    #90140
    travwaite
    Member
    Post count: 21

    Sorry, link is http://dev.topdrawerlingerie.com.au

    1. So I’ve got the logo to full size, but need to fix the padding top/bottom of logo and top/bottom of menu/search/cart icons to get it aligned and cancel out excess white space.

    2. The logo has no link.

    #90142
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    1) Add this:

    #logo a.show-main-nav, #logo a.mobile-cart-link, #logo a.mobile-search-link {
      padding-top: 15px;
      height: auto;
    }

    2) Apologies, the link will not work on mobile

    – Kyle

    #90175
    travwaite
    Member
    Post count: 21

    Thanks Kyle. That’ll do me.

    #90178
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    – Kyle

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

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

License required for one of the following items
Login and Registration Log in · Register