You may need to enable and disable widgets to adapt content to device types. For example, some content may appear on a desktop but not on a phone. While widgets do not support targeting by device type, you can limit the display of a widget's content by device type.
Enable a language to have device-specific content
You must first enable languages to have device specific content.
- Go to Administration > Localization > Languages.
- Click Edit for a language.
- Set the Has Device Specific Content toggle to Yes in Details.
- Click Save.
Select a device type for widget content
- Select the page to add targeted content.
- Select a device type to preview the content, such as Mobile.
- Add a widget containing text or images specific to these device users.
- Click Edit.
- Select Edit in the row table and choose the desired configuration, or proceed to the next step.
- Click Add Widget within a cell.
- Search for or select a widget.
- Add content. You can review the Work with Widgets in Spire article to learn more.
- Click Save.
- Test the results by toggling between device types.
Hide widget content
This example disables the Rich Content widget for mobile devices.
- Choose Mobile.
- Click the widget Edit button.
- Clear the content, and type a space in the text editor.
-
Adding the space is necessary, as the WYSIWYG editor requires content in the text area.
- Click Save.
- Click Publish.
- Approve by clicking Publish again.
- Click Edit to hide the page editing options.
- Test the results by toggling between device types.
Please sign in to leave a comment.