Skip Navigation

[Resolved] Conditional Output Based on Device/Screen Size

This thread is resolved. Here is a description of the problem and solution.

Problem:
How can we output things conditionally depending on the devide or screen size guests view our websites built with Toolset?

Solution:
You would need a custom method that checks the Screensize since Toolset offers nothing to detect that.
However, there is a probably easier solution than crafting such method again, because someone else already did 🙂 - see "Conditional Display for Mobile by WonderPlugin" https://wordpress.org/plugins/wonderplugin-conditional-display/

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by paulA-9 5 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#1285307

Tell us what you are trying to do?
Output html based on Device/Screen Size. I am not sure how Google will interpret hidden content, I rather only serve content that will be used anyway.

Is there any documentation that you are following?
Nope

Is there a similar example that we can see?
Maybe

#1285421

You would need a custom method that checks the Screensize since Toolset offers nothing to detect that.
However, there is a probably easier solution than crafting such method again, because someone else already did 🙂 - see "Conditional Display for Mobile by WonderPlugin" https://wordpress.org/plugins/wonderplugin-conditional-display/

Other than that, I see no easy method to not show content based on screen size unless CSS or custom PHP.

Please let me know if the plugin is solving your challenge here as well (it did for me, it's quite good)

#1288067

My issue is resolved now. Thank you!