Expand my Community achievements bar.

SOLVED

Hide a component on mobile devices only

Avatar

Level 1

Hello all,

Editing a website in the CQ5.6.1 WCM, is it possibile to hide a component based on the source device that requested the page?

For example: I have a normal page with some components in it that will be displayed if the webpage is visited via desktop browser, but I want some of those components to be hidden if the same page is visited using a tablet (let's say iPad). Is it feature available by default in CQ 5.6.1?

Thank you all!

1 Accepted Solution

Avatar

Correct answer by
Employee

Can't you do this via css? Then you don't have to re-render the page for different devices.

This is quite common for responsive design.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Can't you do this via css? Then you don't have to re-render the page for different devices.

This is quite common for responsive design.