Hi, how do insert at script as the one in the private content ?
to my site – https://schmidtgrafisk.dk/
Hi,
Thanks for contacting us!
Please refer to this post – https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/
Best regards,
Yigit
Hi Yigit,
I’m told that code should be placed before the ending </body>, and I don´t know how to do this.
It doesn’t seem to be described in your linked text.
Hi,
Then you can insert it in footer section. Please add following code to functions.php file of your child theme
//-------------------------------
// Custom script in footer
//-------------------------------
function custom_script_name(){
?>
<script>
// Your script here
</script>
<?php
}
add_action('wp_footer', 'custom_script_name');
Best regards,
Yigit
Hi,
You can try using a plugin such as this one – https://wordpress.org/plugins/widget-google-reviews/ :)
Best regards,
Yigit
Hi,
I know that one, thanks, not the exact same as the script ;)
Will you help me get the script to work
Hi,
Please add the code in private content field into the bottom of Functions.php file of your child theme
Best regards,
Yigit
Hi,
this is how the code is set, and I got now result ;)