Support

Home Forums Event Espresso Premium connect file

connect file

Posted: February 2, 2016 at 11:29 am


Emil Pavloff

February 2, 2016 at 11:29 am

Hi , how connect file css and javascript in /wp-content/uploads/espresso ?
This function wp_enqueue_script(‘custom’, get_template_directory_uri() . ‘/js/custom.js’); does not work


Tony

  • Support Staff

February 2, 2016 at 11:38 am

Hi Emil,

get_template_directory_uri() returns the theme directory URI so as you mentioned that won’t work.

Which template are you editing?

You would be better using a Site Specific Plugin or the functions.php file of a child theme to enqueue scrips.


Lorenzo Orlando Caum

  • Support Staff

February 2, 2016 at 11:50 am

Hi Emil,

Could you explain what you are trying to do?

Also, please let us know your version of Event Espresso and if you are trying to follow a tutorial from another support post, then please share that link here.

Thanks


Lorenzo

The support post ‘connect file’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso