Title: scottjd's Replies | WordPress.org

---

# scottjd

  [  ](https://wordpress.org/support/users/scottjd/)

 *   [Profile](https://wordpress.org/support/users/scottjd/)
 *   [Topics Started](https://wordpress.org/support/users/scottjd/topics/)
 *   [Replies Created](https://wordpress.org/support/users/scottjd/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/scottjd/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/scottjd/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/scottjd/engagements/)
 *   [Favorites](https://wordpress.org/support/users/scottjd/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Gutenberg Blocks – Website Builder for the Block Editor] Generate styles on a different page](https://wordpress.org/support/topic/generate-styles-on-a-different-page/)
 *  [scottjd](https://wordpress.org/support/users/scottjd/)
 * (@scottjd)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/generate-styles-on-a-different-page/#post-14385769)
 * I had a similar situation recently where I wanted to be able to stick a reusable
   block outside of the editor (after blog post content on all posts in this case).
   I did some digging and got it working with the code below. I ran it on the `wp`
   hook, and $post is the post object for my block (but passing any post _should_
   work.
 *     ```
       $uagb_helper = UAGB_Helper::get_instance();
       $uagb_helper->get_generated_stylesheet( $post );
       ```
   
 * get_generated_stylesheet() checks for UAGB blocks in the post and adds any needed
   styles/scripts to the list of assets the plugin will enqueue.
 * Obviously this is not official, but I hope it helps!
    -  This reply was modified 5 years, 1 month ago by [scottjd](https://wordpress.org/support/users/scottjd/).
      Reason: clarity

Viewing 1 replies (of 1 total)