Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi Vadym,
    Thanks for your kind words about the plugin, and for your suggestion.

    From your screenshot above, it looks like maybe the block preview isn’t styled.

    If so, you can add a stylesheet for the block to the theme’s blocks/ directory.

    It sounds like you’re really experienced with the plugin. Is the functionality you mentioned of clicking a block to display the preview different from what it already does?

    Clicking preview

    Or were you thinking of displaying a preview of how it should ideally look, not a preview of how it currently looks?

    Thanks, Vadym!

    Thread Starter mrmesssage

    (@mrmesssage)

    Or were you thinking of displaying a preview of how it should ideally look, not a preview of how it currently looks?

    Yes, I meant it.

    Plugin Author Luke Carbis

    (@lukecarbis)

    @mrmesssage You can also create custom templates used _only_ for the preview, by naming your template blocks/preview-{block name}.php. See the Block Previews section here: https://github.com/getblocklab/block-lab/wiki/3.-Displaying-custom-blocks#block-previews

    Does that answer your question?

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

The topic ‘Block preview’ is closed to new replies.