Skip to content
Office

Office Members feature

Memberships on your own website

One script tag adds sign-in, join buttons and members-only sections to the site you already have.

One line, then attributes

Paste the script from the Website screen into your site's head. Then mark up the elements you already have:

  • data-m-show="members" or data-m-show="plan:pro" shows an element only to members or one plan. Put ! in front to show it to everyone else.
  • data-m-action="signup", "login", "logout", "account" or "checkout" turns any button into one that works.
  • data-m-field="name" prints the member's name, email, plan or a custom field.
  • data-m-form="signup" turns an existing form into a working sign-up or profile form.

The sign-in and join windows come built in, in your brand color, and work by keyboard and on a 320 pixel phone screen. They open inside your page, so nothing gets blocked as a pop-up.

Whole pages by address

Add page rules such as "everything under /members/ needs Supporter". Visitors without access go to your join page and come back to the same page after joining, or see the join window over a blurred page. The screen says plainly that page rules and show/hide attributes are light protection, because the page's HTML still reaches the browser. For anything you'd mind being copied, use protected content blocks.

Works with CMS lists and app-style sites

Attributes work on repeated CMS items, and the script watches for page changes, so Framer page transitions and single-page apps keep working. A member who clicks a checkout button for a plan they already have goes to their account page.

Example

A WordPress site with a members section

A climbing gym's WordPress site has a /members/ section with route-setting videos. They paste the script into the theme header, add a page rule for /members/* with the Member plan, and change the "Join" button in their menu to data-m-action="checkout" data-m-price="price_monthly". The "Sign in" link gets data-m-show="!members" and a new "Account" link gets data-m-show="members". The videos themselves go in a protected block. It took an afternoon.

How to set it up

  1. 1

    Open Website and add your site's domains to the allowed list.

  2. 2

    Copy the script tag and paste it into your site's head, using the guide for your platform.

  3. 3

    Click Check installation to confirm it's live.

  4. 4

    Add attributes and page rules, then try it signed out and signed in.

Memberships on your own website is part of Office Members and included on every plan.

Questions people ask

How big is the script?

About 10 KB compressed, with no other libraries, so it doesn't slow your pages down.

Will members see locked content flash before it hides?

No. The script hides marked elements before the page draws, then shows the right ones.

Is there a WordPress plugin?

A plugin with shortcodes and server-side checks is coming soon. The script works on any WordPress site today.

Try Office Members with your whole team

7-day trial with every feature. Cancel from the billing page whenever you like.