• Resolved bellmd2

    (@bellmd2)


    I am trying to use a button within a table cell. Any idea on how to get this to work with Nelio pop-ups? This is an example of the code; tableberg allows buttons:

    <!-- wp:tableberg/cell -->
    <td class="wp-block-tableberg-cell"><!-- wp:tableberg/button {"text":"Click for Google","textColor":"#ffffff","backgroundHoverColor":"#0693e3","textHoverColor":"#ffffff","url":"https://www.google.com"} /--></td>
    <!-- /wp:tableberg/cell -->

    Thanks in advance,

    -Dave

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Antonio Villegas

    (@avillegasn)

    Do you want the button to open a popup made with Nelio Popups? If that’s the issue, just use in the url attribute of your button the following URL structure:

    https://yoursite.com/?nelio_popup=your-popup-postname

    Note that the popup postname (or the whole URL) can be found if you use a regular button and try to add a link to the button. In the user interface to search for the link URL, popups from Nelio Popups appear as suggestions:

    Just select the popup that you want and if you explore the link that is set in the regular button, that is the URL that you want to use in your other buttons from tableberg.

    Thread Starter bellmd2

    (@bellmd2)

    Got it, thank you!

    Just FYI for anyone else, it does not work if you preview a page; for me at least. I must view the published page.

    • This reply was modified 3 months, 2 weeks ago by bellmd2.
    Plugin Author Antonio Villegas

    (@avillegasn)

    You are right. This behavior changed after we changed the way in which we loaded popups in the frontend. However, you still can make it work. Just add the following class into your button instead of the URL in the href property:

    nelio-popup-js-open-1234

    Where 1234 is the ID of your popup. After that, make sure the popup is configured so that the following is properly set:

    • The Locations configuration includes the page/post where your button is, as explained here.
    • The Triggers configuration is empty, or set up according to this (if set up, you won’t need to add the aforementioned class to your button).

    Hopefully, now my instructions will be correct.

    Thread Starter bellmd2

    (@bellmd2)

    Any idea of why one of the pop-up pages is popping up upon page load? This only occurs if I have more than 1 pop-up active (via button) on the same page.

    Edit: Oh derp, I forgot, I have to change each pop-up page trigger type. Sorry! ??

    • This reply was modified 3 months, 2 weeks ago by bellmd2.
    • This reply was modified 3 months, 2 weeks ago by bellmd2.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.