Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show/Hide on blocks on different device/screen types #39968

Closed
Greatdane opened this issue Apr 1, 2022 · 2 comments
Closed

Show/Hide on blocks on different device/screen types #39968

Greatdane opened this issue Apr 1, 2022 · 2 comments
Labels
[Status] Not Implemented Issue/PR we will (likely) not implement.

Comments

@Greatdane
Copy link

What

I would like to have the option for every single block that would allow to hide/show the block based on device type in the FSE and the regular blocks.

Why

This will give more control to the user to manage the content on the website. This way, they can decide to hide the content that may not be suitable for mobile viewers from being viewed when the site is viewed on mobile and vice versa.

Additionally, they can decide to create multiple variations of the same content by choosing to display one set for the mobile viewers and another only for desktop and tablet viewers.

Overall, it will enhance the website development experience to a whole new level with precise control on the block elements based on the device types.

How

For example, see this image.
hide-show

@ndiego
Copy link
Member

ndiego commented Apr 4, 2022

HI @Greatdane, thank you for submitting this issue. This would be a very useful feature. That said, there are many great free plugins that already include this functionality, which traditionally has been something WordPress Core has avoided implementing directly and left to plugins. I have included a list of options below. Full disclosure, I built Block Visibility.

For a simpler solution, in one of my themes, I have created helper CSS classes that I can add as needed to each block under the Advanced section (see screenshot below).

image

I know this is not the answer you were looking for, but I hope this info is at least helpful. 🙏

@ndiego ndiego added the [Status] Not Implemented Issue/PR we will (likely) not implement. label Apr 4, 2022
@ndiego ndiego closed this as completed Apr 4, 2022
@syhussaini
Copy link

I request to have this feature considered especially for the Simple Sites as these sites does not have the option to add Plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Not Implemented Issue/PR we will (likely) not implement.
Projects
None yet
Development

No branches or pull requests

3 participants