Usage: If on mobile display something, else display something else

Leon's Avatar

Leon

29 Jan, 2023 11:03 AM

Product: Tao Contao
Contao Version: 4.13

Hi,
is there way to have something like an if else in the article section of a page? e.g. I want to have a big calendar on desktop views, but on mobile it should be a list instead. Is there a way to make something like, mobile begin, mobile end, not on mobile begin, not on mobile end, wrapper for page elements?

  1. Support Staff 1 Posted by RockSolid Theme... on 30 Jan, 2023 10:21 AM

    RockSolid Themes's Avatar

    Thank you for submitting your question!

    Yes, this can be achieved with some CSS Code and a custom CSS class. You can find more information about that in the following ticket: https://help.rocksolidthemes.com/discussions/contao/63905

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac