Skip Navigation

[Gelöst] Conditional Output Based on Device/Screen Size

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 4 Jahre, 8 Monate. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by paulA-9 vor 4 Jahre, 8 Monate.

Assisted by: Beda.

Author
Artikel
#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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.