Meta not displaying in Live Preview or Front end

Support MB Blocks Meta not displaying in Live Preview or Front endResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15702
    bodenburgcbodenburgc
    Participant

    Using the "hero" block example, the meta_boxes display in the admin area. When content is added the live preview collapse and does not display the LIVE preview. Also, will not display on the front end. It looks like the data is being saved to the db.

    I noticed there was a recent update. Is there a way to get a back version 1.0.2 for troubleshooting?

    I have a fresh install listed below. you should be able to reproduce the error on the sample page.

    link: http://corbysplayground.scalesstaging.com/sample-page/
    u: metabox
    p: metabox

    #15717
    Anh TranAnh Tran
    Keymaster

    Hi,

    I found the problem. You're using a child theme, and in the register.php function that registers the block it refers to the parent theme folder:

    'render_template' => get_template_directory() . '/blocks/hero/template.php',
    'enqueue_style'   => get_template_directory_uri() . '/blocks/hero/style.css',

    It should change to:

    'render_template' => get_stylesheet_directory() . '/blocks/hero/template.php',
    'enqueue_style'   => get_stylesheet_directory_uri() . '/blocks/hero/style.css',

    I made the change in your site and it works.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.