Skip to content

Commit

Permalink
test if this helps problems with elementor
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed May 24, 2024
1 parent 5c06bd8 commit 630d422
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crouton.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,18 @@ private function getMapInitialization($mapConfig)
}
return "";
}
private $footerScript;
private function getInitializeCroutonBlock($renderCmd, $config, $mapConfig)
{
$this->footerScript = $this->computeInitializeCroutonBlock($renderCmd, $config, $mapConfig);
add_action('wp_footer', array($this, 'printFooterScript'), 99, 0);
return '';
}
public function printFooterScript()
{
echo $this->footerScript;
}
private function computeInitializeCroutonBlock($renderCmd, $config, $mapConfig)
{
if (!$this->croutonBlockInitialized) {
$this->croutonBlockInitialized = true;
Expand Down

0 comments on commit 630d422

Please sign in to comment.