# What exactly happens when I initially add interactions to a project or page

**URL:** <https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588>\
**Category:** Pinegrow Interactions Add-on\
**Created:** [January 6, 2023, 1:38pm UTC](https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588 "2023-01-06T13:38:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dom](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/dom/32/4887_2.png) [@Dom](https://forum.pinegrow.com/u/Dom)\
**Post date:** [January 6, 2023, 1:38pm UTC](https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588/1 "2023-01-06T13:38:09Z")

</div>

I’ve been experimenting with adapting some Flowbite components to work with interactions. My reasoning has been twofold. Firstly there’s the age old mountaineers’ excuse of because it’s there and the second was because as I knew I wanted to use interactions for something else anyway I thought why not.

I made a bit of a hash on my first attempt(s) but once I created a new project and played around in a more structured manner I got them doing what I wanted.

Flushed with success it was back to the original project where I initially messed up. I had thought that I had removed all vestiges of interactions from the project but clearly I hadn’t, hence my question.

When you first initiate interactions for a project or page what exactly does Pinegrow then do?

---

<div class="post-metadata">

**Author:** ![chipriggs](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/chipriggs/32/5076_2.png) [@chipriggs](https://forum.pinegrow.com/u/chipriggs)\
**Post date:** [January 6, 2023, 2:27pm UTC](https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588/2 "2023-01-06T14:27:53Z")

</div>

I’d be curious to know this as well. On a recent project I added interactions to a few simple elements (mobile navigation) that could of easily been done through vanilla JS and then after the fact thought about taking them out but was a bit flummoxed about how to do so.

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [January 6, 2023, 3:58pm UTC](https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588/3 "2023-01-06T15:58:19Z")

</div>

Activating Interactions on a page does two things:

1. Adds an inline script that handles hiding / showing elements on page load to the head of the page
2. Includes pgia/lib/pgia.js script in the footer

To remove Interactions remove these two scripts and all data-pg-ia\* attributes.

---

<div class="post-metadata">

**Author:** ![Dom](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/dom/32/4887_2.png) [@Dom](https://forum.pinegrow.com/u/Dom)\
**Post date:** [January 6, 2023, 4:16pm UTC](https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588/4 "2023-01-06T16:16:51Z")

</div>

Well that’s what I thought and so that’s what I did.

I stripped out the script at the top of the page, the reference at the bottom and in truth everything in between and yet it still thinks interactions are active.

I guess I must have corrupted the project somehow. No big deal I can always build it again as it’s only small.

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [January 6, 2023, 4:26pm UTC](https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588/5 "2023-01-06T16:26:44Z")

</div>

Aha… one more thing. Deactivate Interactions in File - Manage libraries and plugins. This info is stored in pinegrow.json.

And one more - delete pgia folder in the project.

---

<div class="post-metadata">

**Author:** ![Dom](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/dom/32/4887_2.png) [@Dom](https://forum.pinegrow.com/u/Dom)\
**Post date:** [January 6, 2023, 5:29pm UTC](https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588/6 "2023-01-06T17:29:09Z")

</div>

Thanks

Very useful info.

---

<div class="post-metadata">

**Author:** ![rays](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rays/32/5581_2.png) [@rays](https://forum.pinegrow.com/u/rays)\
**Post date:** [April 24, 2023, 1:48pm UTC](https://forum.pinegrow.com/t/what-exactly-happens-when-i-initially-add-interactions-to-a-project-or-page/7588/7 "2023-04-24T13:48:19Z")

</div>

A more practical solution would be for there to be a “disable” button in the interactions tab of pinegrow.  
Only the developers at the pinegrow editor know the ins and outs of exactly what is done by enabling interactions in a project.  
I just posted a request for this in “Feature Request”.  
Raymond
