Webflow sync, pageviews & more.
NEW

Redirect Users to Membership Dashboard

Example

Redirect Users to Membership Dashboard

Description

Redirect a Memberstack user to a designated dashboard page based on their package subscription in Webflow. This Javascript snippet will allow you to easily redirect users to their proper dashboard page based on their membership plan on your Webflow Memberstack site.

Instructions

  1. Add the Javascript snippet to the head section of your custom code settings
  2. Update the URLs and the type of Membership name (Basic/Pro)

Javascript snippet


<!-- Add to HEAD section -->
<script>
 MemberStack.onReady.then(function(member) {   
   switch (member.membership.name) {
     case 'Basic':
       window.location.assign('/members/basic');
       break;
     case 'Pro':
       window.location.assign('/members/pro');
       break;
      default:
       window.location.assign('/members/dashboard');
   }
 });
</script>

CSS snippet

HTML snippet

Change Active Webflow Tab

Change Active Webflow Tab

Change the default Webflow active tab on your Webflow site with this custom Javascript code.

Hide Element After Click w/Cookie

Hide Element After Click w/Cookie

Hide an element on your Webflow site after click with a cookie via this Javascript snippet. This is perfect for welcome modals, cookie notifications, notification alerts and other items that only need to be displayed a single time.

Navigate Webflow Slider with Arrow Keys

Navigate Webflow Slider with Arrow Keys

Add arrow keys keyboard functionality to Webflow's native slider with this simple Javascript code. This added functionality allows users to use their keyboards to navigation through slides in a Webflow slider.

Setting & Manipulating Cookies

Setting & Manipulating Cookies

Set, modify and manipulate cookies on your Webflow site via this Javascript code. This allows you to set a cookie, get a cookie, modify a cookie, check a cookie and delete a cookie on your Webflow site.

Scroll to Top of Page on Tab Click

Scroll to Top of Page on Tab Click

Automatically scroll a user to the top of page on a tab change on your Webflow site. A simple Javascript code snippet that allows for you to scroll users to the top of your site based on your selected class.

Page Transition Click Delay

Page Transition Click Delay

Add a delay when a user clicks on a link on your Webflow site. This functionality adds a nice delay to your Webflow site before the users hit the next page.

Redirect Logged in User to Dashboard

Redirect Logged in User to Dashboard

1

Redirect a Memberstack user to your Webflow user dashboard if they are logged in to your Webflow Memberstack membership site.

Back to Previous Page Button

Back to Previous Page Button

Add a back to previous page button to your Webflow site with this simple Javascript code snippet. When a user clicks on the button they'll be returned to the previous page they were visiting.

DRAG
Real-time sorting by
No items found.
DRAG
Real-time sorting by