How to enqueue footer script dependent on parent js in footer??
-
Hi,
I have a child theme and want to enqueue a small .js file in the footer.
It’s being queued properly. However, this script needs to use the parent theme .js file as a dependency and this parent .js is in the footer. The parent .js doesn’t have a handle.
I tried to register the parent theme to add a handle for reference when enqueuing the child theme .js, but it doesn’t seem to work.
I can get my child .js to queue in the footer, just not dependent on the parent theme .js in the footer.
Any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to enqueue footer script dependent on parent js in footer??’ is closed to new replies.