Remove Map in Mobile

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

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

Open Support Ticket
  • Author
    Posts
  • #375451

    Kah Sheung Chan
    Expired Member
    Post count: 27

    I saw another thread with this topic but it’s closed. Over there you posted something which I think is exactly what I need.

    “I think you could use something like mobble plugin.

    https://wordpress.org/plugins/mobble/

    However, you would still have to recreate all map widgets as custom widgets in your child theme functions.php file and include the is_mobile() condition from mobble to the whole widget function.

    It shouldn’t be that hard.

    Let us know if this points you in the right direction.”

    However, I’m not very familiar with PHP. What do you mean by recreate all map widgets as custom widgets in your child theme functions.php. Will it be too complicated for you to advise here?

    #375453

    Kor
    Moderator
    Post count: 16516

    Hi there,

    If you are trying to hide/remove the map from mobile. Have you tried using custom CSS with media queries?

    Thanks!

    #375456

    Kah Sheung Chan
    Expired Member
    Post count: 27

    Thanks for the quick response as always.

    No I have not. How can it be achieved?

    #375523

    Kor
    Moderator
    Post count: 16516

    Hi there,

    Using the custom CSS code below should hide the map on mobile. Please insert into GD > Design > Scripts > Custom Style CSS. Let us know if it’s what you’re looking for.

    
    
    @media only screen and (max-width: 500px) {
       .geodir_map_container  {
           display:none!important;
       }
    }
    #375660

    Kah Sheung Chan
    Expired Member
    Post count: 27

    Excellent!

    Really appreciate the support I’m getting here. Thanks!

    #375664

    Kor
    Moderator
    Post count: 16516

    You’re Welcome

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