Ran into an issue that I can’t seem to solve and was hoping someone could think of a creative work-around.
My CrossFit client would like to implement SugarWOD onto the site (custom code is below). However, the issue is the code creates a popup. I would like this popup to come up when someone clicks the “WOD” button in the navigation.
However, I tried creating a popup model with the custom code embed inside and this just creates a double popup – forcing the user to click out twice.
The other solution I tried was to just place the code on a separate page (which works) but when the user closes the popup the page is blank.
There are no other options within SugarWOD to create any other code.
Was wondering if someone could think of a solution for this.
I also tried changing the code from openOnPageLoad: “yes” to “no” and it simply makes the popup not load at all – unless I am doing something wrong here. But I tried it in a popup and as a new page.
I can’t find an element with class="sugarwood-toggle". Im assuming that only a button with that class can trigger the popup. That’s what you’re looking for right?
@dennyhartanto I suppose. I am open to any clean and UX friendly way to get this accomplished. I just don’t want the use to end up on a blank page or have to exit our of two popups.
I was able to get the code to work, and it is almost appears to be working as intended. The only issue is when you click the “WOD” button in the Nav, it will display the plugin and then close immediately.
Could you check my interactions and see if I need to add something?