Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    That’s indeed the expected behaviour. The page scrolls down so your readers immediately see the new message in the subscriptions widget, inviting them to confirm their subscription by clicking on the link in the confirmation email.

    If the page didn’t scroll, some of your readers may enter their email address, and forget to check their inbox to confirm their subscription.

    I hope this clarifies things a bit.

    Thread Starter Andres Soop

    (@moonfly)

    Is there a way to disable this function since it visually brakes the sidebar when doing that?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’m not sure what you mean by breaking the sidebar. Could you maybe post a screenshot of the issue on your end?

    You can use https://snag.gy/ to share your screenshots here.

    Thanks!

    Thread Starter Andres Soop

    (@moonfly)

    Here are the screenshots what I am seeing.

    This is how it looks like without “#blog_subscription-5” in the url (the way I would like it to look like)
    https://snag.gy/A9Myt.jpg

    and this is how it currently looks like after I hit “Subscribe” (if you scroll down on the page, it continues with the narrow black sidebar)
    https://snag.gy/rf8Rt.jpg

    I think it shows like this because it makes the sidebar loose once the button is clicked and it scrolls off the screen with the rest of the content, if the sidebar would remain fixed, I think it would be fine.

    Thanks for the quick replies.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thank you! I am able to reproduce the issue now; it seems to be limited to Firefox, which is why I couldn’t see the issue earlier, in Chrome.

    To remove that anchor from the Subscription success URL, you can paste the following in your theme’s functions.php file, or in a functionality plugin:

    function jeherve_custom_sub_redirect_page( $result ) {
    	if ( 'success' === $result ) {
    		$redirect = add_query_arg( 'subscribe', $result );
    		wp_safe_redirect( $redirect );
    		exit;
    	}
    }
    add_action( 'jetpack_subscriptions_form_submission', 'jeherve_custom_sub_redirect_page' );
    Thread Starter Andres Soop

    (@moonfly)

    This function fixed it.
    Thank you for your support and quick answers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘email subscription button messes up theme’ is closed to new replies.