Member vs Non Member Content

In-page content can be different based on the logged-in state of the user, either Member or Non Member (not logged in). Use the code below to dictate if content should be hidden/shown based on certain logged-in state.

There are two classes which can be used to dictate what/who content is displayed.

  • “member-only”
  • “non-member-only”

Content that has neither of these classes will appear to all users regardless of logged in state.

These classes can be passed to any block level element such as paragraphs, headers, tables etc.

Member Only


h2(member-only). This headline will only be seen by a logged in user

p(member-only). This text will only be seen once a user logs in.

table(styled featured member-only).
(header). |_. Name |_. Breed |_. Color |
| Fluffy | Great Dane | Black |
| Bob | Schnauzer | Gray |
| Louise | Saint Bernard | Red/White |

Login or you won’t see anything below this.

This headline will only be seen by a logged in user

This text will only be seen once a user logs in.

Non Member Only


h2(non-member-only). This headline will only be seen by a logged in user

p(non-member-only). This text will only be seen once a user logs in.

table(styled featured non-member-only).
(header). |_. Name |_. Breed |_. Color |
| Fluffy | Great Dane | Black |
| Bob | Schnauzer | Gray |
| Louise | Saint Bernard | Red/White |

Log back out (if you are logged in you won’t see anything below this.)

This headline will NOT be seen if you are logged in

This text will NOT be seen if you are logged in

For making a whole page “member-only”, use

all the content
.