• hello,
    I have a child theme setup for my main theme and understand how this woks for most files however when trying to override a few options of a jQuery plugin i copied the containing .js directory to my child theme, made the necessary changes to the options object but the theme is still loading the options from the main theme; not the child theme. Do i have to enqueue the .js file in the child theme folder or something else???

Viewing 1 replies (of 1 total)
  • The child theme loads before the parent theme, so if you enqueue the JS files, when the parent theme does it, the second one will have no effect. You have to use the same handle (the string literal for the name) though. Copy the one you need from the parent, but point it to your new version of the file. And you should use a new version number, so the browser won’t use the cached version.

Viewing 1 replies (of 1 total)

The topic ‘Child theme overriding jQuery plugins’ is closed to new replies.