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 3 Jahre, 1 Monat. 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.

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by paulA-9 vor 3 Jahre, 1 Monat.

Assigned support staff: 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!