WPIntell

Source evidence

Block theme problem loading the inline scripts

STAGGS – Product Configurator Toolkit · support · 2023-11-17T15:54:00+00:00

neutralsentiment
mediumseverity
0.42relevance
1replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Wilco resolved
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. Hello Wilco, Thank you for sharing the solution with us! We will include it in the next update. Cheers!

Comments

1 shown
STAGGS 2023-11-20T11:05:00+00:00

Hello Wilco, Thank you for sharing the solution with us! We will include it in the next update. Cheers!