Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #243794

    Hi!

    I’m looking for help on how to add this http://codepen.io/ace/pen/BqEer Javascript to one of my pages.

    Since I’m using the Enfold theme I thought I might ask here how to best implement it into the theme.

    Best regards,

    • This topic was modified 10 years, 8 months ago by tommyfo.
    #243898

    Hey tommyfo!

    Please go to Appearance > Editor and open Functions.php file and find

    // wp_register_script( 'wp-mediaelement',  $template_url.'/js/mediaelement/mediaelement-and-player.min.js', 'jquery', "1", true);

    and add following right below it

    wp_enqueue_script( 'custom-js', $template_url.'/js/custom.js', array('jquery'), 1, true );

    Save your file inside wp-content\themes\enfold\js folder with name custom.js

    Regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.