# Two buttons on an embedded popup

**URL:** <https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216>\
**Category:** Bugs / Site Issues\
**Created:** [June 15, 2025, 4:42pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216 "2025-06-15T16:42:42Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulfio](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/paulfio/32/1357_2.png) [@paulfio](https://community.pickaxe.co/u/paulfio)\
**Post date:** [June 15, 2025, 4:42pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/1 "2025-06-15T16:42:42Z")

</div>

Has anyone had the issue where two buttons show up for an embedded popup? I added the embeds on Friday, and everything was working fine.

Then on Sunday, I see two buttons for each popup. I tried deleting the code module, and adding a new one with freshly copied code. I also tried changing the bot, which also didn’t work.

Any Ideas???

 ![Two Button Popup Embed](https://canada1.discourse-cdn.com/flex004/uploads/pickaxeproject/original/2X/0/0ca88caf992868eb02b0605661de1748b55b239d.png)

---

<div class="post-metadata">

**Author:** ![ihmunro](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/ihmunro/32/592_2.png) [@ihmunro](https://community.pickaxe.co/u/ihmunro)\
**Post date:** [June 15, 2025, 4:53pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/2 "2025-06-15T16:53:54Z")

</div>

Can you post your code?

---

<div class="post-metadata">

**Author:** ![paulfio](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/paulfio/32/1357_2.png) [@paulfio](https://community.pickaxe.co/u/paulfio)\
**Post date:** [June 18, 2025, 8:59pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/3 "2025-06-18T20:59:17Z")

</div>

Thanks for your response!

Do you think it’s Pickaxe code related if it was working one day, and not the next? I haven’t done anything to the code, but also not sure if I can just post it in the text body here.

The double button is only half of the problem, the other half is that it couldn’t be centered in the module for some reason - it would only stay aligned left.

Also, I’m using Divi 5 builder Alpha, so that could also have something to do with it. I’m now experimenting with using a page type pop-up instead of the Pickaxe pop-up to alleviate the problems, and that will also be more consistent with button attributes across the whole site.

Still, any advice would be appreciated since this shouldn’t really be an issue.

---

<div class="post-metadata">

**Author:** ![ihmunro](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/ihmunro/32/592_2.png) [@ihmunro](https://community.pickaxe.co/u/ihmunro)\
**Post date:** [June 18, 2025, 9:02pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/4 "2025-06-18T21:02:21Z")

</div>

Hi @paulfio

Thanks for the update.

Yes, the Divi 5 maybe the issue.

Have you tried without the Divi 5 code to see what happens?

---

<div class="post-metadata">

**Author:** ![paulfio](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/paulfio/32/1357_2.png) [@paulfio](https://community.pickaxe.co/u/paulfio)\
**Post date:** [June 18, 2025, 9:18pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/5 "2025-06-18T21:18:53Z")

</div>

No, but I do have a couple of other Divi 4 sites I can try it on, I just need to find the time.

I’ll try it this evening, and let you know.

Thanks!

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [June 18, 2025, 9:34pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/6 "2025-06-18T21:34:05Z")

</div>

Hi @paulfio,

If you share the website link, we can debug further.

---

<div class="post-metadata">

**Author:** ![paulfio](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/paulfio/32/1357_2.png) [@paulfio](https://community.pickaxe.co/u/paulfio)\
**Post date:** [June 18, 2025, 10:39pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/7 "2025-06-18T22:39:15Z")

</div>

I removed the code from the site and changed to using a site based pop-up.

Let me add the code again and send you the link.

---

<div class="post-metadata">

**Author:** ![paulfio](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/paulfio/32/1357_2.png) [@paulfio](https://community.pickaxe.co/u/paulfio)\
**Post date:** [June 18, 2025, 10:50pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/8 "2025-06-18T22:50:55Z")

</div>

Here’s the site link: [Chatbots | Business Resource Group](https://thebusinessresourcegroup.com/chatbots)

Just an FYI - I’m still working on the site, and now the button is showing correctly but still won’t let me center it

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [June 18, 2025, 11:57pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/9 "2025-06-18T23:57:42Z")

</div>

Try adding this config script

```auto
 <script>
    window.PickaxeConfig = {
      "deployment-96ce9778-a226-4dee-a8dd-d8e83fa3af1e": {
        "style": {
          "display": "inline-block",
        }
      }
    };
  </script>

```

---

<div class="post-metadata">

**Author:** ![r3dux](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/r3dux/32/3652_2.png) [@r3dux](https://community.pickaxe.co/u/r3dux)\
**Post date:** [June 19, 2025, 12:47am UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/10 "2025-06-19T00:47:53Z")

</div>

Im having the same issue with several embeds of different agents and style ive dug and dug it has to be coming from pickaxe

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [June 19, 2025, 1:09am UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/11 "2025-06-19T01:09:53Z")

</div>

Hi @r3dux,

If you share the website link, we can debug further.

---

<div class="post-metadata">

**Author:** ![r3dux](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/r3dux/32/3652_2.png) [@r3dux](https://community.pickaxe.co/u/r3dux)\
**Post date:** [June 19, 2025, 1:18am UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/12 "2025-06-19T01:18:08Z")

</div>

[seasideselect.com](http://seasideselect.com) Iam actively dealing with other issues on it

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [June 19, 2025, 3:04am UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/13 "2025-06-19T03:04:25Z")

</div>

Ahh looks like there are two links to bundle.js but, I’ll make an update that will check for this. You can remove one of them for now.

---

<div class="post-metadata">

**Author:** ![paulfio](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/paulfio/32/1357_2.png) [@paulfio](https://community.pickaxe.co/u/paulfio)\
**Post date:** [June 19, 2025, 4:55pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/14 "2025-06-19T16:55:53Z")

</div>

Just wanted to get back to you and @stephenasuncion about this issue.

It seems that the button problem somehow worked itself out and now only displays one button, but I found another issue that will probably be internal to Pickaxe.

When I tested the popup on mobile, it would not adjust to show the submit button, though thankfully the “x” to close it was displayed. Below is a screenshot of what I saw, and with multiple attempts at resizing the width in Pickaxe, it would not get any narrower to display the submit button.

However, the pop-up method I was using would show everything, albeit a bit too narrow and had to scroll to see input and submit (other screenshot). That pop-up was done with code, not a plugin, so I think the best bet would be to just use a plugin with better control over padding / margin.

I do like the appearance of the Pickaxe pop-up better though, I wish it worked better.

 ![Pickaxe Popup](https://canada1.discourse-cdn.com/flex004/uploads/pickaxeproject/original/2X/b/b166c7efd5aaad181c9b5db2e6f9464b71ffc988.jpeg)  
 ![Pickaxe Popup](https://canada1.discourse-cdn.com/flex004/uploads/pickaxeproject/original/2X/5/528529aa51a7a8b076dc5a72e991cee421eb2956.png)

---

<div class="post-metadata">

**Author:** ![jrosenthal](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/jrosenthal/32/721_2.png) [@jrosenthal](https://community.pickaxe.co/u/jrosenthal)\
**Post date:** [June 20, 2025, 5:07pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/15 "2025-06-20T17:07:08Z")

</div>

> [@stephenasuncion](#):
>
> ```auto
> window.PickaxeConfig = {
> "deployment-96ce9778-a226-4dee-a8dd-d8e83fa3af1e": {
> "style": {
> "display": "inline-block",
> }
> }
> };
> 
> ```

@stephenasuncion -

can you elaborate on what you can do with window.PickaxeConfig? I know you can pass params in, but is this adjusting styles of the button? chat window? Can we do both? Does it just mixin our styles, or…? Any behavioral flags to know about? Thanks!

(types of things I’d love to be able to do… remove button border (popup embed), spacing/centering, custom fonts/font weights, chat close behavior (I’d rather just hide it, not close it, as a way of retaining session history)), etc?

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [June 20, 2025, 9:31pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/16 "2025-06-20T21:31:11Z")

</div>

Hi @paulfio,

Checkout the popup embed again. I made some changes to fix mobile responsiveness.

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [June 20, 2025, 9:42pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/17 "2025-06-20T21:42:18Z")

</div>

> [@stephenasuncion](#):
>
> `window.PickaxeConfig`

Hi @jrosenthal,

`window.PickaxeConfig` was initially intended for actions. All data within it is transferred as an environment variable (`PICKAXE_FRONTEND_PICKAXE_CONFIG`) in the form of a raw JSON string, which you can parse and use in your action code.

Currently, the only thing the embed scripts modify is the container of the embed.  
For example:

```auto
window.PickaxeConfig = {
  "deployment-e9ec462e-ff4f-47d8-afc4-9785340e5962": {
    "class": "custom-class-1 custom-class-2",
    "style": {
      "display": "inline-block",
    }
  }
};

```

 ![image](https://canada1.discourse-cdn.com/flex004/uploads/pickaxeproject/original/2X/c/c03f5d52d23677002177f32cb47ea6a12acc0320.png)  
Or, if you want to apply the style to all embed deployments:

```auto
window.PickaxeConfig = {
  "class": "custom-class-1 custom-class-2",
  "style": {
    "display": "inline-block",
  }
};

```

![image](https://canada1.discourse-cdn.com/flex004/uploads/pickaxeproject/original/2X/7/7c90e377e645b7237cf8d4f0ed19a6edf8aa97cb.png)

…  
And all these only work on script embeds.

---

<div class="post-metadata">

**Author:** ![paulfio](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/paulfio/32/1357_2.png) [@paulfio](https://community.pickaxe.co/u/paulfio)\
**Post date:** [June 22, 2025, 12:50pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/18 "2025-06-22T12:50:39Z")

</div>

Hi @stephenasuncion ,

That looks and works beautifully - thank you!!!

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [June 22, 2025, 10:49pm UTC](https://community.pickaxe.co/t/two-buttons-on-an-embedded-popup/6216/19 "2025-06-22T22:49:45Z")

</div>


