css desktop v mobile error?

This topic contains 5 replies, has 2 voices, and was last updated by  Guust 7 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #393127

    D P
    Expired Member
    Post count: 24

    Hello

    So..I have gone crazy with the code inspector and achieved quite a bit, however, some of the code remains once i use a mobile device, for example:

    I use the code below, it removes the google ‘enter your location’ and ‘get directions’ tabs below the google map in the listings.

    .gd-input-group-addon {display:none;}

    The issue I have is that if i use a mobile device the ‘enter your location’ and ‘get directions’ tabs reappear.

    Any idea where i have gone wrong here?

    Many thanks

    #393132

    Guust
    Moderator
    Post count: 29970

    Post the URL of that page so we can have a look, if we need to.
    Here is just a quick link that may help:
    https://www.google.com.au/search?newwindow=1&rlz=1C1CHBF_en-GBAU714AU714&q=css+targeting+mobile+devices

    Note too that using the Chrome code inspector, you can switch to mobile devices simulation too, see image.

    Thanks

    #393183

    D P
    Expired Member
    Post count: 24
    This reply has been marked as private.
    #393191

    Guust
    Moderator
    Post count: 29970

    You should target the next one up, or edit the media query:

    
    
    .geodir_map_container .gd-get-directions {
        display: none !important;
    }
    #393231

    D P
    Expired Member
    Post count: 24
    This reply has been marked as private.
    #393275

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount