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.
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.
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.
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?
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: