• SauLustig

    (@saulustig)


    I do have a question.

    Is it possible to hide posts, if the user is using a mobile phone?

    Post should be visible, when User ist using a desktop PC!

    Background is, that I offer posts, which are not technically working for smartphones and so the content needs to be hidden.

    Stealth Publish for mobile!

    Any Idea or suggestion how this might work?

    Andre

Viewing 3 replies - 1 through 3 (of 3 total)
  • Viktor V.

    (@fesovik)

    Hello SauLustig,

    You can try using media query (CSS) to set the visibility of the posts div’s to hidden. Then they will not show if the browser is smaller that specified.

    Thread Starter SauLustig

    (@saulustig)

    Posts with games should not be shown for mobile users
    I need to mark a post if it contains a game or not…

    Is this possivle with CSS ?

    Viktor V.

    (@fesovik)

    It would be something like this. If the browser window is smaller than 300px then this rules apply.

    @media screen and (max-width: 300px) {
        .game {
            display: none;
        }
    }

    You can configure the CSS by your demands but this is a good solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide content "if mobile"’ is closed to new replies.