Support » Plugin: Custom CSS and Javascript » Adding codepen code

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Potent Plugins

    (@hearken)

    Hi there,
    It looks like the code you are using is throwing a Javascript error. Unfortunately, issues with the CSS/JS code that you add in the plugin are outside the scope of plugin support.

    Hey @hearken,

    Thank you so much for taking the time to reply.

    It works correctly on https://codepen.io/colinhorn/pen/dRBvLq. Why would it not work in WP if I’ve copied the exact same code?

    If it’s the same code, is there another way that you suggest to go about this?

    Plugin Author Potent Plugins

    (@hearken)

    If I remember correctly, it looks like you may be missing a library that the Javascript depends on.

    I see what you mean. When I click Settings on the codepen page, and then click JavaScript I see “External JavaScript”: https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js

    Can I add that External JavaScript through your plugin?

    Plugin Author Potent Plugins

    (@hearken)

    Hi there,
    Unfortunately our plugin doesn’t have am option to load external JS files. You could insert the external JS code into your custom Javascript, or write JS code to inject the external file into your page, or use a different method such as loading it in your functions.php.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding codepen code’ is closed to new replies.