Add a HTML Widget to your footer and place the content in there.
WordPress Admin > Appearance > Widgets.
I’ve just tested with the following JavaScript snippet and this works as expected.
<script type="text/javascript">
console.log('Hello World')
</script>
Related Posts:
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- Display encrypted content on my website
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- Redirect to another page using contact form 7? [closed]
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- Call javascript functions from each page
- Add a filter to a different custom plugin
- How to get selected variation from URL?
- javascript onload calling a function of a plugin
- WordPress and WebRTC?
- Will Flutter work with WordPress 3.0?
- Leveraging WordPress Comments on Custom Plugin Object page
- Copyright messages for a particular set of pages
- Debugging Technique Question re: functions.php
- Check if User exists in WordPress Multisite
- Localiztion in javascript
- WP-Cufon adding extra space in my paragraphs in Firefox and Chrome
- Is there a way to alter the order in which the plugins appear in the page?
- Getting Post details when post is published
- Override the filter from plugin in child theme
- force customers to add only single item to card per purchase EDD [closed]
- Preventing BFA in WordPress without using a plugin
- Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates? [closed]
- Delete Associated Media Upon Page / Post Deletion
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- How to check what plugins used to be on a WordPress installation?
- wordpress.org codebase
- Output HTML only on individual post view
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- Can a plugin deactivate and delete itself once installed and activated?
- Manually add order item with fixed product_id in WooCommerce
- FacetWP group listings by custom field [closed]
- How to modify shortcode attributes with data from current post
- ‘Customize’ button in admin bar for CSS
- Pass a php string to a javascript variable
- Problem in loading javascript in footer
- Auto delete WordPress users according to time
- Plugin Customization Lost During Plugin Upgates
- JQuery not working in my plugin [closed]
- Next and/or previous post content
- prettyPhoto media loading very slowly in Chrome
- How to import my YouTube channel into WordPress?
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Custom Field Template seriously messed up in WP 3.1.1
- My Category is too big on the Menu what can i do?
- how to load the language file in plugin?
- Plugin upgrade issue
- Can we use a webservice with WordPress?
- How to load plugin after page is loaded – pagespeed issues
- How to use get_theme_mod in gutenberg editor wordpress?
- add mediaelement.js plugins into WordPress video player control bar
- Shortcode button dosent work for all posts. Work for first post only
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- React JSX in WordPress Plugin Development
- Internationalization autocomplete JS variable
- How can I capture Memberpress user info after signup [closed]
- My plugin wants to update another plugin
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- I have no idea “How change font for elements in widget?”
- Collapse content [closed]
- View Private Published Page with URL Code (no login required)
- Using custom JS plugins with WordPress?
- Can I use a plugin for a singular page on my website?
- Override Javascript in a Plugin?
- JS Support Ticket – Auto create WP account
- How to show Recent Page instead of Post?
- Remove Duplicator plugin from admin menu if not an administrator
- How to disable specific plugin in mobile version?
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Input with spaces in Shortcode attributes overwritten by defaults
- Add a custom form on the post-new.php admin page
- Removing customise fields during plugin uninstallation
- Best approach to fetch data from wp options to js file or php file
- Edit Yoast SEO breadcrumbs output [closed]
- What’s the best way to implement AJAX in WordPress?
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- Translating long texts with html formatting
- Can someone please tell me what is wrong with my plugin?
- How would I go about creating a user ranked post popularity page?
- Updating the Drag-To-Share eXtended share URLs?
- Scripts at the end of the page
- wordpress site | All-in-one-cufon IE Issue
- Anonymous Postings
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- Enqueue WordPress plugin scripts below all other JS
- How to add Internationalization in WordPress using Javascript/React?
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Change upload folder for a CPT
- Disable woocommerce cookies and delete cart data automatically
- How to get the element ID from new menu list that added with add_filter()?
- Override Plugin Script Fucnction in WordPress
- Time consuming callbacks in customizer
- className not populating in custom block
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Run plugins only on certain pages