New Landing How can we help? Cardinal Mobile Logo version

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Cardinal
  • #222471
    davidll
    Member
    Post count: 205

    Hello

    Read a few posts on here regarding a css change for a different logo on a mobile. I have this issue to resolve, due to the clients logo have a long version (large applications) and a short version (smaller applications).

    So, I found the following:

    @media only screen and (max-width: 980px) {
    
    #logo {
    background-color: transparent!important;
    background-image: url('http://www.url/image.png') no-repeat!important;
    }
    
    #logo img {
    display: none!important;
    }
    

    But it doesn’t replace the mobile version.
    Whats really odd, is that, if I change the (max-width: 980px) to (max-width: 1980px) it shows the mobile version in the main window – but when collapsed, reverts back to the old, large version ! ( i hope that test made sense!)

    Any help would be appreciated

    Thanks

    David

    #222511
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Have you changed the mobile logo image path url http://www.url/image.png with your image path in code?
    Thanks
    Mohammad

    #222601
    davidll
    Member
    Post count: 205

    Yes… I can confirm the links correct… I only put dummy text due to it being a local server.
    Also:

    Whats really odd, is that, if I change the (max-width: 980px) to (max-width: 1980px) it shows the mobile version in the main window – but when collapsed, reverts back to the old, large version ! ( i hope that test made sense!)

    #222602
    davidll
    Member
    Post count: 205

    Also – just noticed – I can confirm also, there is and ending } – for the @media only screen
    Its missing in the above code

    #222610
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Did you add it? Is it working now?
    Remember to clear the browser cache.

    -Rui

    #222624
    davidll
    Member
    Post count: 205

    Hello

    Sorry – I think you are miss understanding me:
    I have this code in place:

    @media only screen and (max-width: 980px) {
     
    #logo {
    background-color: transparent!important;
    background-image: url('THE CORRECT URL') no-repeat!important;
    }
     
    #logo img {
    display: none!important;
    }
    }
    

    But it doesn’t replace the mobile version.
    Whats really odd, is that, if I change the (max-width: 980px) to (max-width: 1980px) it shows the *NEW* mobile version in the main window – but when collapsed, reverts back to the old, *STANDARD* version ! ( i hope that test made sense!)

    Any help would be appreciated

    Thanks

    David

    #222849
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    I’d have to see your site live to look into this

    – Kyle

    #222850
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    I’d have to see your site live to look into this

    – Kyle

    #222851
    davidll
    Member
    Post count: 205

    Ok

    I will make it live next week, and provide access
    Thanks

    David

    #222852
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok no problem

Viewing 10 posts - 1 through 10 (of 10 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