• Resolved nate22

    (@nate22)


    First block I made:
    – Image – shows up in the Gutenberg editor but doesn’t actually appear on the website. I searched source code and there is no image appearing anywhere.

    Second block I made
    – Text – Same as above. It shows up in the Gutenberg editor but doesn’t actually appear on the website.

    I’m running WordPress 5.1.1 which is supposed to be compatible.

    My templates are greenlit just fine by the Block Lab plugin. They’re quite simple.

    Here’s the image template in mytheme/blocks/block-full-width-image.php:
    <img src="<?php block_field( 'image' ); ?>" />

    Here’s the text template in mytheme/blocks/block-test.php:
    <h2><?php block_field( 'text' ); ?></h2>

    • This topic was modified 5 years, 8 months ago by nate22.
    • This topic was modified 5 years, 8 months ago by nate22.
    • This topic was modified 5 years, 8 months ago by nate22.
    • This topic was modified 5 years, 8 months ago by nate22.
    • This topic was modified 5 years, 8 months ago by nate22.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Neither text nor Image shows on website.’ is closed to new replies.