Custom Fields
Support MB Blocks Meta not displaying in Live Preview or Front end

  • Creator
  • #15702
    Resolved bodenburgc

    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.

    u: metabox
    p: metabox

Viewing 1 replies (of 1 total)
  • Author
  • #15717
    Anh Tran


    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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.