• Resolved johnfotios

    (@johnfotios)


    I’ve added a block, once I’m done editing the block in Gutenberg, when I click out of the block, it attempts to render a front-end preview of the block (using the markup from my block-hero.php file). This is great, but I don’t really have time to add the front-end preview css to every block I add. I’d rather it always showed the editable fields.

    Is there a way to turn off the front-end preview?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter johnfotios

    (@johnfotios)

    What I’ve done as a “half fix”, is to create a preview.php and block.css for the block, and just put the title of the block and a “click to edit” wrapped in a div in preview.php, then styled it up as text-align:center, padding:100px 10% and border:1px solid #111;

    That way it looks neat at least.

    I appreciate that I should make an effort to create a real preview. But I am small web developer working on smaller projects, so there’s time/money constraints etc.

    Plugin Contributor Ryan Kienstra

    (@ryankienstra)

    Hi @johnfotios,
    Sorry for the delay.

    That makes sense to want to hide the front-end preview, but unfortunately we don’t have a good way to do that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is it possible to hide the “front-end” preview?’ is closed to new replies.