[Support request] how to hide content on home page for mobile devices

Home Forums Support how to hide content on home page for mobile devices

This topic contains 1 reply, has 2 voices, and was last updated by  Tom 1 month, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1226776

    olusegun

    hello guys i have chat box on my home page but i dont the chat box show on my home page for mobile devices, my question is how do i hide the chat box from mobile viewers.
    my reason for hiding is that i want to reduce the size of the homepage for mobile devices

    #1226838

    Tom Lead Developer

    Hi there,

    You could hide it using CSS, but that likely won’t help with the size of the homepage.

    How are you adding the chat box? If you’re using a Hook Element, you could do this:

    <?php if ( ! wp_is_mobile() ) : ?>
        Your chatbox code in here
    <?php endif; ?>
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.