I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Open form without clicking button

dashed-slug.net Forums Tip the Author extension support Open form without clicking button

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #8224


    Regarding the button, how can I do to let the form open by default? so if I click it closes the form.

    The button it is not necessary in almost of cases, and it adds some friction to user experience (many clicks).

    Thank you in advance

    Best regards



    Thank you. The button was a user request. The rationale is that most users would not use the UI so it would not take up space. Now that pagination is introduced, this is less of an issue but is still a point to consider.

    In the general case, a theme can show many full articles in one page (think one-page themes for example). As the UI reuses observables, only one UI can be open at any one time. Therefore, in the general case, the button, when clicked, closes all other similar UIs and then opens its own UI.

    For this reason, I cannot provide an option on whether you want all UIs to initialize as open. The best I can do is add an option which, when checked, would open the first tipping UI on the page. In the next release I will add an option that does this when enabled:

    jQuery( 'body' ).on( 'wallets_ready', function( ) {
    	jQuery('.wallets-tips-outer:first button.toggle').click();
    } );

    The effect is that the first tipping UI (usually the only one), will be opened when the page loads. I will add this into the next patch release.

    with regards



    In version 2.1.0 there is now an admin option on whether you want the form to be open by default on page load.

    with regards

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.