CPT no address mobile view show map still there

This topic contains 12 replies, has 3 voices, and was last updated by  Jeff Adams 6 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #427495

    Jeff Adams
    Free User
    Post count: 1780

    On my site i have a CPT for “web based” businesses. I have this CPT set for “no addresses”. In mobile view it still displays “show map”. See images

    #427499

    Jeff Adams
    Free User
    Post count: 1780
    This reply has been marked as private.
    #427513

    Kor
    Moderator
    Post count: 16516

    Hi Jeff,

    Thanks for your post. I’m going to assume that Web-Based business do not have addresses and you can use the custom CSS code below to hide the “Show Map” button.

    
    
    @media only screen and (max-width: 600px) {
        .post-type-archive-gd_webbased #showMap {
        display:none!important;
    }
    }
    #427519

    Jeff Adams
    Free User
    Post count: 1780

    no need to assume that, that’s exactly what I said, CPT with no address does not need address. This CSS you supplied did not remove “show map” however it seemed to remove what happens after you click “show map”.

    Since this is not suppose to do this, can’t you guys log in and fix it instead of making me try through your hit or miss only to have to come back in here, take more time, back and forth, back and forth. I mean, clearly this is not suppose to do this.

    #427550

    Alex Rollin
    Moderator
    Post count: 27815

    Show map appears to be hidden. Please check and let us know.

    #427613

    Jeff Adams
    Free User
    Post count: 1780

    Please try opening this page: https://veganlinked.com/webbased/

    Then expand down the page from the side and you’ll see the “Show Map” appear as illustrated in the attached image.

    #427615

    Jeff Adams
    Free User
    Post count: 1780

    Here’s a video demonstrating this:

    https://youtu.be/9pYZbB7LaP0

    Maybe mobile viewport is fine but not tablet size viewport, all viewports should be consistent. Thank you

    #427636

    Kor
    Moderator
    Post count: 16516

    Hi Jeff,

    Thanks for your reply. I’ve just applied the custom CSS code I’ve shared earlier into your Website. Could you please check now?

    Thanks!

    #427638

    Jeff Adams
    Free User
    Post count: 1780

    no, still doing the same thing. And, I’m trying to put CSS back in the site, so we’re doing it at the same time. which is causing my changes to be overwritten! Hold on a minute. I’ll be done in like 20 minutes.

    #427639

    Kor
    Moderator
    Post count: 16516

    Hi Jeff,

    Please test it on a real mobile device and the code only works for screensizes smaller than 600px. The attached is how it looks like on my mobile.

    Thanks!

    #427643

    Jeff Adams
    Free User
    Post count: 1780

    Thanks,

    I understand that it works in mobile view, this is why in the video I specifically said it appears to work fine in mobile device, but it needs to work find in all viewports, like tablets. Which it appears to not be fine. Either way, if you do what I show in this very short video on a desktop viewport you will see the issue.

    #427670

    Kor
    Moderator
    Post count: 16516

    Hi Jeff,

    Adjusted the custom CSS code to

    
    
    @media only screen and (max-width: 992px) {
        .post-type-archive-gd_webbased #showMap {
        display:none!important;
    }
    }
    #427705

    Jeff Adams
    Free User
    Post count: 1780

    Awesome, thanks Kor!

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

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

Open Support Ticket