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

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 1 week, 1 day ago.

  • Creator
    Topic
  • #15702
    Resolved
    bodenburgc
    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

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #15717

    Anh 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 1 replies (of 1 total)

You must be logged in to reply to this topic.