There are a few ways to add your code:
- Using the wp_footer hook.
- Installing a plugin.
- Add it to your themes existing JS files.
This is the fastest and easiest way to get your custom code setup. This is also the method we use throughout the Popup Maker Documentation.
Simply input your custom code in the wrapper below (denoted: "// Your custom code goes here."), then add the entire code block to your functions.php, or even better, add it to a child theme or custom site plugin, so you don't lose your changes when the theme is updated.
Using Simple Custom CSS and JS with Popup Maker
To make sure the CSS or JS you use for Popup Maker works as intended, add your code to the plugin normally, but make sure your Options Pane is setup like this:
Keep in mind, when using a plugin like this, you don't need the wrapper that we've provided above when using the wp_footer method.