• Resolved amethystwd

    (@amethystwd)


    Genesis Custom Blocks is not reading my /blocks/example-block/block.php or /blocks/block-example-block.php files.
    It will read /blocks/example-block/preview.php or /blocks/preview-example-block.php files.
    This is just publishing the Example Block that comes with Genesis Custom Blocks.
    I can view all the fields with preview.php, but it won’t render on the front.
    I have the same content in each file:

    
    <div class="example-block">
    	<p> Example Block has <?php block_field( 'button-text' ); ?> </p>
    </div>
    

    (There is more template than this; I just stripped it down, as it wasn’t working.)

    I have another block with a loop in the template that will preview perfectly, but won’t display on the front-end.

    • This topic was modified 4 years, 6 months ago by amethystwd.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘preview template displays; block template does not’ is closed to new replies.