Hallo,
ich habe hier ein Javascript und würde gern wissen, wie ich es in Enfold integrieren kann. Unter Theme editor? In welcher Datei genau?
beste Grüße
Hey ausgesonnen,
Typically you can add your javascript into your child theme functions.php with this function:
function custom_script() { ?>
<script>
/* your javascript here */
</script>
<?php
}
add_action( 'wp_footer', 'custom_script', 99 );
If you are not using a child theme I recommend the WPcode plugin this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets.
Best regards,
Mike
thanks, I installed the child theme and it worked well. Can be closed now
Hi,
Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard