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:
$this->enqueue_inline_scripts();
Additionally, at line 1296, I substituted the original return script with the following code:
printf('<script type="text/javascript">%s</script>', $script);
This fixed the problem for me.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Block theme problem loading the inline scripts’ is closed to new replies.