Hi there
I use enfold theme and I try to insert a code block from the avia layout architect for a html script, whicht opens my calender. I inserted the script, but it does not work. I also tried to use a html widget, but I have the same problem. The script is not showed. The script goes like:
<!– Calendly Link-Widget Beginn –>
<link href=”https://assets.calendly.com/assets/external/widget.css” rel=”stylesheet”>
<script src=”https://assets.calendly.com/assets/external/widget.js” type=”text/javascript” async></script>
Zeitplan Zeitfenster
<!– Calendly Link-Widget Ende –>
Can anybody help me with this, please?
Thank you very much
-daniela-
Hey HaouliCat,
Thank you for the inquiry.
We don’t recommend adding script or input tags to the builder directly because it could break the layout of the page. One solution is to create a custom shortcode for the embed code or use the default enqueue functions.
// https://developer.wordpress.org/reference/functions/wp_enqueue_script/
// https://developer.wordpress.org/reference/functions/wp_enqueue_style/
To create a custom shortcode, please check the link below.
// https://codex.wordpress.org/Shortcode_API
Best regards,
Ismael