Title: Block theme problem loading the inline scripts
Last modified: November 17, 2023

---

# Block theme problem loading the inline scripts

 *  Resolved [Wilco](https://wordpress.org/support/users/bbqbill/)
 * (@bbqbill)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/block-theme-problem-loading-the-inline-scripts/)
 * I encountered an issue while attempting to integrate the configurator using the
   shortcode [staggs_configurator product_id=””] within a modern block theme, specifically
   the new twentytwentyfour theme. The challenge arose from the inline JavaScript
   failing to load properly.
 * To resolve this issue, I made adjustments to the class-staggs-public.php file.
   At line 201, I initiated the loading of inline scripts with the following code:
 *     ```wp-block-code
       $this->enqueue_inline_scripts();
       ```
   
 * Additionally, at line 1296, I substituted the original return script with the
   following code:
 *     ```wp-block-code
       printf('<script type="text/javascript">%s</script>', $script);
       ```
   
 * This fixed the problem for me.

Viewing 1 replies (of 1 total)

 *  Plugin Author [STAGGS](https://wordpress.org/support/users/staggsofficial/)
 * (@staggsofficial)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/block-theme-problem-loading-the-inline-scripts/#post-17214988)
 * Hello Wilco,
 * Thank you for sharing the solution with us! We will include it in the next update.
 * Cheers!

Viewing 1 replies (of 1 total)

The topic ‘Block theme problem loading the inline scripts’ is closed to new replies.

 * ![](https://ps.w.org/staggs/assets/icon-256x256.png?rev=3176005)
 * [STAGGS - Product Configurator Toolkit](https://wordpress.org/plugins/staggs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/staggs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/staggs/)
 * [Active Topics](https://wordpress.org/support/plugin/staggs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/staggs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/staggs/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [STAGGS](https://wordpress.org/support/users/staggsofficial/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/block-theme-problem-loading-the-inline-scripts/#post-17214988)
 * Status: resolved