Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Javascript in wordpress

Discussion in 'Misc WordPress Requests' started by RossMitchell, Dec 16, 2017.

  1. RossMitchell

    Guest

    Reply To: Javascript in wordpress, by RossMitchell

    Thank you for providing the info we need.
    It says the steps are:

    1. Create the pollfishConfig object to setup Pollfish library
    2. Include jQuery library to your website (version 1.4.3 and above)
    3. Include Pollfish library to your website
    4. Request your account to get verified from Pollfish Dashboard

    To do this it would be best to use a child theme, if you are not presently using a child theme then convert to one using these instructions:
    http://codex.wordpress.org/Child_Themes
    The other option is to put the required code into a plugin, you will know if this is appropriate in your situation.

    Not sure about step 1.
    To do step 3, into your “functions.php” file add code which will include a call to “wp_enqueue_script”, as detailed here:
    https://developer.wordpress.org/themes/basics/including-css-javascript/
    this also covers looking after point 2
    You will upload their .js file into your child theme directory.
    Then it looks like you would be good for step 4.

    Reply To: Javascript in wordpress
     
    #1

Share This Page

Monarch Social Sharing Plugin