I want to install the Tidio chat plugin. For that, it needs to have the javascript code in the footer.php. Im using x child theme and when I went to the Theme editor in WP, the footer.php only displays this. Where do I put the javasccript? There is no tag to put it.
<?php // ============================================================================= // FOOTER.PHP // ----------------------------------------------------------------------------- // The site footer. // ============================================================================= do_action( 'tco_footer' );Hey @HyperVoxel,
What you’re intending to do is not recommended. WordPress has a way to insert code in the footer through hooks. You can follow any suggestions here in this 3rd party article https://kinsta.com/knowledgebase/add-code-wordpress-header-footer/
If you wish to proceed with hard coding, you can simply insert your Javascript code below the do_action line.
Just remember that hard coding is not recommended and we do not provide support for issues arising from the use of 3rd party codes.


Hope that helps.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.