• Resolved Adam

    (@cscottrun)


    I am having an issue with loading some javascript in a child theme I am creating for one of my themes.

    Essentially I do:

    get_stylesheet_directory() . '/path/to/javascript.js'

    which is what your suppose to do, But , as per the documentation, I am getting:

    mysite.com/dev/home/path/to/wordpress/path/to/theme/path/to/js.js

    which is causing it to not find the required file. because home is at the root of the site.

    any ideas on what I can do to fix this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘child themes and get_stylesheet_directory’ is closed to new replies.