Enqueue Admin Styles?

Support MB Blocks Enqueue Admin Styles?Resolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20920
    Luke KellerLuke Keller
    Participant

    Hey all,

    I didn't see anything in the documentation that details whether the enqueue_styles parameter pulls in styles in both the front-end and admin views. Is there a way to enqueue the block-specific styles for admin views as well?

    Thanks!

    #20926
    Long NguyenLong Nguyen
    Moderator

    Hi Luke,

    The main purpose of the block editor is a block display in the backend like in the frontend. So if you enqueue to load a file style.css for the specific block, it loads in both backend and frontend.

    See my screenshots
    https://share.getcloudapp.com/yAuYde5J
    https://share.getcloudapp.com/KouBp8ob

    You can create the block by using the example files https://docs.metabox.io/extensions/mb-blocks/#example.

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