# Different Footer scripts

**URL:** <https://forum.pinegrow.com/t/different-footer-scripts/4104>\
**Category:** WordPress\
**Created:** [May 11, 2020, 2:29pm UTC](https://forum.pinegrow.com/t/different-footer-scripts/4104 "2020-05-11T14:29:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DharmaInitiative](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@DharmaInitiative](https://forum.pinegrow.com/u/DharmaInitiative)\
**Post date:** [May 11, 2020, 2:29pm UTC](https://forum.pinegrow.com/t/different-footer-scripts/4104/1 "2020-05-11T14:29:18Z")

</div>

Hello,

I’m currently working on transforming an HTML/CSS website to Wordpress. I need to add few scripts to the footer but only on a certain page, I wasn’t really sure how to proceed, as currently anything I add to the footer won’t be taken in account since i’m using index.html as a Master Page.

Additionally, I’ve tried setting up that same page in a separate page (has its own **Header/Footer** ), though, en queuing in functions.php seem to just enqueue it everywhere anyway.

Anyone has an idea?  
Thanks

---

<div class="post-metadata">

**Author:** ![DharmaInitiative](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@DharmaInitiative](https://forum.pinegrow.com/u/DharmaInitiative)\
**Post date:** [May 11, 2020, 2:36pm UTC](https://forum.pinegrow.com/t/different-footer-scripts/4104/2 "2020-05-11T14:36:21Z")

</div>

I believe I answered my own question, I am not sure if this is the best use, but I did something like this:

- I added the script to my “main” section for it to not get replaced by my master page when I make changes there
- Enqueued the script with a new handle and with dependencies (Jquery), deregistered and enqueued it
- Finally added a condition if\_page to only be shown on a certain slug page

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/0/0e811a9bffb787e7b31aab1fc97280b531c38998.png)
