• Resolved movlas

    (@movlas)


    Please restore Twentig’s Visibility controls in WordPress 7.x

    I use Twentig’s Visibility controls extensively to maintain different versions of blocks for desktop, tablet, and mobile.

    Prior to WordPress 7.x, Twentig’s Visibility panel worked exactly as I needed:

    • All versions of the block remained visible in the editor.
    • Twentig’s Hide on desktop / tablet / mobile settings controlled only what appeared on the published page.
    • I could easily see and edit every version of the content without having to hunt for hidden blocks.

    With WordPress 7.x, Twentig apparently hands visibility control over to WordPress core and removes its own Visibility panel.

    The problem is that WordPress’s new Hide/Visibility system also hides the block from the editing canvas. The only practical way to find a hidden block is through List View, and selecting one hidden block can cause the currently displayed version to disappear.

    This is a significant regression for anyone who maintains separate desktop, tablet, or mobile content. I need to see all versions while editing and control only their visibility on the published page.

    I confirmed this by downgrading WordPress. On the earlier version, Twentig’s Visibility (TW) panel immediately reappears and the old workflow works correctly again.

    Could you please either:

    1. Restore Twentig’s own Visibility controls on WordPress 7.x, or
    2. Add an option allowing users to choose Twentig’s visibility system instead of the WordPress core implementation?

    The old Twentig implementation is substantially better for responsive page editing because hidden-on-device blocks remain visible and editable in the editor.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Yann

    (@collet)

    Hi,

    Thanks for explaining your workflow so clearly. WordPress 7 introduced its own responsive visibility controls, so Twentig now uses the Core feature by default.

    We understand that the previous Twentig behavior, keeping every block visible in the editor while hiding it only on the live site, can be more convenient when maintaining separate versions for different devices. This is also being discussed in the Gutenberg project: Hidden blocks should still be visible in the editor.

    We’ve just released Twentig 2.0.5, which lets you restore the original controls with this filter:

    add_filter( 'twentig_use_legacy_visibility_controls', '__return_true' );

    You can add it to a child theme’s functions.php file or through a Code Snippets plugin.

    Alternatively, you can easily create a small functionality plugin. To do so, create a file named twentig-visibility.php and paste the following code:

    <?php
    /**
    * Plugin Name: Twentig Visibility
    * Description: Restores Twentig's original visibility controls.
    * Version: 1.0
    */

    defined( 'ABSPATH' ) || exit;

    add_filter( 'twentig_use_legacy_visibility_controls', '__return_true' );

    Put the file inside a twentig-visibility folder, zip the folder, then install and activate it through Plugins → Add Plugin → Upload Plugin.

    Twentig’s Visibility panel will then reappear, and its settings will hide blocks only on the live site. WordPress’s own visibility controls will remain available too.

    Thanks again for the feedback!
    Yann

    Thread Starter movlas

    (@movlas)

    Yann,
    Thanks for the code.

    It corrected everything.

    Plugin Support Yann

    (@collet)

    @movlas,

    Great, glad to hear that fixed it!

    Would you mind leaving us a quick review on our plugin page? It helps us continue providing great features and helps other users find us. 😀

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.