Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi,
    You can add this code to your website, probably in the functions.php of your theme (preferably a child theme).

    function my_gwolle_gb_save_entry_frontend_redirect( $entry ) {
    	wp_redirect( 'https://desktop-images.com/virtual-exhibition-guestbook/' );
    	exit;
    }
    add_action( 'gwolle_gb_save_entry_frontend', 'my_gwolle_gb_save_entry_frontend_redirect', 99, 1 );

    I do think you need to disable AJAX for the form. It works here ??

    Please understand that when an extry was posted successfully, you will not see the message that it was accepted. If moderation is enabled, the user might be confused.

    Thread Starter primzahl3541

    (@primzahl3541)

    Hello Marcel,

    thanks for your support. It works as you’ve described, AJAX deactivated.

    For time being I did a test in the main theme because currently I’m not working with a child theme. But a read about child themes in the WP documentation and will set this up over the weekend.

    I agree that it might be confusing for a user to not see his entry immediately when redirected to the guestbook overview, as I plan to keep the guestbook moderated. I’ll adapt the text information on the form to explain that and see what will be the reactions.

    Plugin Author Marcel Pol

    (@mpol)

    Hi,
    There are plugins that can easily create a child theme for you.
    Switching from parent theme to child theme can sometimes be just a click of a button, and sometimes it needs a bit more work in redoing some settings. I assume that depends on the parent theme. The more simple it is, well, the more simple it is ??

    And yes, some help text might be good. If it still turns out to be confusing to users, you can decide on how to continue.
    If you need anything, just ask again.
    Have a good weekend.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect after submit to another page’ is closed to new replies.