# Enqueue Scripts misbehaviour?

**URL:** <https://forum.pinegrow.com/t/enqueue-scripts-misbehaviour/77>\
**Category:** Pinegrow WP\
**Created:** [July 29, 2016, 2:18pm UTC](https://forum.pinegrow.com/t/enqueue-scripts-misbehaviour/77 "2016-07-29T14:18:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helmi](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/helmi/32/20_2.png) [@Helmi](https://forum.pinegrow.com/u/Helmi)\
**Post date:** [July 29, 2016, 2:18pm UTC](https://forum.pinegrow.com/t/enqueue-scripts-misbehaviour/77/1 "2016-07-29T14:18:04Z")

</div>

Hey guys,

I’m unsure about how this is intended to work but I think it at least does have some unwanted behaviour. I’m putting this in the WP section as i think it fits most. As i’m quite new to Pinegrow please forgive if i’m wrong.

So this is about the WP-Action “Enqueue Script”. I tried fiddling around with inserting my local Typekit.js today and ran into some problems. At the end I got it fixed by just calling the from the code after some hints on the chat. But what I did before was adding this action to some pages (i tried index.html, lib.html, maybe all senseless but as I didn’t know what’s right I tried some). I thought I had it removed everywhere after it worked the other way then (that -Tag insertion) until I noticed on the blog that the sites looked good (and my custom fonts from Typekit loaded) but the content was missing.

I hunted down where this comes from and found the Template-parts completely empty. Means all files generated in the template-parts/ director were there but were zero bytes in sizes. I had a blind guess that this may still come from the Enqueue-Script action that already ended in an empty index.php earlier. So I looked through all the files and found it still active in the lib.html. For Whatever reason this caused the template parts not to be generated.

Two big questions for me:

- What did I do wrong so this Enqueue-Script-Action could completely wipe the content of the templates that were generated.
- Why hasn’t there been any visible error for me 🙂

I wouldn’t call this a bug report - maybe I just did something wrong, but then at least I would expect some kind of error message when the WordPress Export is generated.

Ideas?

Thanks,  
Frank

Some system information:

- Pinegrow 2.92
- Mac OSX 10.11.6
- Running natively on OSX (no VM)
- CustoMac (i7 6700k, 32GB RAM, GTX970 4GB)

---

<div class="post-metadata">

**Author:** ![itsmeleo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/itsmeleo/32/19_2.png) [@itsmeleo](https://forum.pinegrow.com/u/itsmeleo)\
**Post date:** [July 31, 2016, 5:14pm UTC](https://forum.pinegrow.com/t/enqueue-scripts-misbehaviour/77/2 "2016-07-31T17:14:23Z")

</div>

@Helmi your problem is resolved and did you get it why you got problem , and not seeing any error ?
