Skip to content
The Admin Bar
  • Get Involved
    • Facebook Group
    • Barfly Community
    • TABLE Mastermind
  • Learn
    • Articles
    • Events
    • Newsletter
    • YouTube
    • WordPress Professionals Survey
    • SEO Weekly
    • Security Weekly
    • Accessibility Weekly
  • Products
  • About
  • Free Stuff

How I Rebuilt a Dynamic Membership Website Using Block Visibility

Last week, I rebuilt the Barfly Members website with a new design, and it quickly became one of the most dynamic websites I’ve ever created. Using the Block Visibility plugin, I was …

Kyle Van Deusen

Kyle Van Deusen

Published:

January 29, 2025

Filed Under:

General

Kyle Van Deusen

Kyle Van Deusen

The Admin Bar

After spending 15 years as a graphic designer and earning a business degree, I launched my agency, OGAL Web Design, in 2017. A year later, after finding the amazing community around WordPress, I co-found The Admin Bar, which has grown to become the #1 community for WordPress professionals. I'm a husband and proud father of three, and a resident of the Commonwealth of Virginia.

S teir
This content contains affiliate links. View our affiliate disclaimer.

Last week, I rebuilt the Barfly Members website with a new design, and it quickly became one of the most dynamic websites I’ve ever created. Using the Block Visibility plugin, I was able to make a single template display six different views based on taxonomies, event types, and whether the user was logged in or logged out.

This approach not only streamlined the design process but also added advanced functionality to the site. In this post, I’ll walk you through how I accomplished this, step by step, so you can apply similar techniques to your own projects.

YouTube video

The Four Main Views

For this project, I needed four primary views:

  1. Upcoming Events: Displayed differently for logged-in and logged-out users.
  2. Past Events: Also displayed differently based on login status.
  3. Logged-Out Visitors: A view that encourages users to log in or sign up.
  4. Logged-In Members: A view with additional functionality, such as access to event replays and calendar integration.

Additionally, I needed a fifth view for specific event types, like happy hour calls, which required unique content.

Designing the Views

Here’s how the views differ:

Upcoming Events

  • Logged-Out Users: See the hero section, a featured image, event description, and a prompt to log in or sign up for access.
  • Logged-In Members: See the same hero section and event description, but instead of the login prompt, they get buttons to add the event to their calendar or join the Zoom call.

Past Events

  • Logged-Out Users: See a blurred image of the event replay video with a “members only” tag and a login prompt.
  • Logged-In Members: See the actual replay video, event description, and no calendar or Zoom links (since the event has already passed).

Happy Hour Events

For happy hour calls, I added a small blurb explaining what happy hour is, but only for events tagged as “happy hour.”

The Challenge: One Template for All Views

I didn’t want to create four separate templates for these views. If I needed to make a layout change, I’d have to update all four templates, which would be inefficient. Instead, I aimed to accomplish all these views within a single template.

To do this, I put everything that could possibly appear on the page into one layout and used dynamic visibility controls to show or hide elements based on conditions.

Setting Up the Template

Step 1: Build the Layout

I started by creating a single template that included all possible elements:

  • Featured image
  • Blurred video placeholder
  • Replay video embed
  • Login or sign-up prompts
  • Event description
  • Calendar and Zoom buttons
  • Happy hour blurb

Step 2: Add Visibility Controls

To dynamically show or hide elements, I used the Block Visibility plugin. This plugin allows you to set conditions based on taxonomies, user roles, and more.

Using Block Visibility

Featured Image

The featured image should only appear for upcoming events, regardless of whether the user is logged in or logged out.

  1. Select the featured image block.
  2. Open the Visibility tab in the block settings.
  3. Add a condition:
    • Post Taxonomy: Event schedule is “upcoming.”

Blurred Video Placeholder

The blurred video placeholder should only appear for logged-out users viewing past events.

  1. Select the blurred image block.
  2. Add two conditions:
    • Post Taxonomy: Event schedule is “past.”
    • User Role: Logged-out users.

Replay Video Embed

The replay video should only appear for logged-in users viewing past events.

  1. Select the video embed block.
  2. Add two conditions:
    • Post Taxonomy: Event schedule is “past.”
    • User Role: Logged-in users.

Login or Sign-Up Prompts

I added two login prompts:

  • One for logged-out users viewing past events.
  • Another for logged-out users viewing upcoming events.

For each prompt, I set conditions based on the event schedule and user role.

Calendar and Zoom Buttons

These buttons should only appear for logged-in users viewing upcoming events.

  1. Select the button blocks.
  2. Add two conditions:
    • Post Taxonomy: Event schedule is “upcoming.”
    • User Role: Logged-in users.

Happy Hour Blurb

The happy hour blurb should only appear for events tagged as “happy hour.”

  1. Select the container block for the blurb.
  2. Add a condition:
    • Post Taxonomy: Event type is “happy hour.”

Why This Setup Works

By using Block Visibility, I was able to dynamically control what content appears based on the user’s role and the event type or schedule. This approach allowed me to create a single template that adapts to multiple scenarios without duplicating effort.

Additional Features

Dynamic Menus

I used the If Menu plugin to control menu visibility based on login status. For example:

  • Logged-in users see a “Billing” menu item.
  • Logged-out users see “Log In” and “Sign Up” options.

Giveaway Pages

On the giveaways page, I used Block Visibility to show different content based on the event schedule:

  • Upcoming Giveaways: Display a “Registration opening soon” message.
  • Current Giveaways: Show a registration form.
  • Past Giveaways: Move the giveaway to the “Past Giveaways” section.

Why Block Visibility Is a Game-Changer

Block Visibility makes it easy to manage dynamic content without needing custom code. Whether you’re building a membership site or just need conditional content, this plugin is incredibly versatile.

For the Barfly Members website, it allowed me to deliver content to members while also marketing the community to potential new members. Visitors can see what’s available, but access is restricted behind a login.

Final Thoughts

This setup has been a huge time-saver and has made the website far more dynamic and functional. Whether you’re building a membership site or just need advanced content controls, Block Visibility is a tool worth exploring.

If you’re looking for ways to streamline your website design while adding powerful functionality, I highly recommend giving this plugin a try.

Share This Article!
FacebookXLinkedInEmail
Kyle Van Deusen

Kyle Van Deusen

The Admin Bar

After spending 15 years as a graphic designer and earning a business degree, I launched my agency, OGAL Web Design, in 2017. A year later, after finding the amazing community around WordPress, I co-found The Admin Bar, which has grown to become the #1 community for WordPress professionals. I'm a husband and proud father of three, and a resident of the Commonwealth of Virginia.

Come Join Us!

Join the #1 WordPress Community and dive into conversations covering every aspect of running an agency!

Join Group

Kyle Van Deusen

Community Manager

Latest Events

September 16, 2025

Termageddon 2.0

Better Tools, Smoother Workflows, Happier Clients

August 19th, 2025

Which WordPress Page Builder is the Most Accessible?

The 2025 Page Builder Accessibility Report

August 15, 2025

Managing Your Agency with Moxie

Can this all-in-one solution help you streamline your agency and calm the chaos?
Care Plan Toolkit

Save time, boost profits, and confidently manage client websites with proven tools, tips, and resources.

Download Free
Bento Toolkit
The Friday Chaser

Wash down the week with the best of The Admin Bar! News, tips, and the best conversations delivered straight to your inbox every Friday!

Subscribe Today

More Articles

Cleanshot 2025 09 08 at 15.22.24@2x
September 10, 2025

Can you trust AI to write your website’s Privacy Policy?

Yes, AI can write your Privacy Policy — but chances are you (and the law) won’t like the result.

Barfly profile melodie moore
September 8, 2025

Member Spotlight: Melodie Moore

Melodie Moore didn’t start in tech—she started with hula hoops. What began as a professional hoop …

Drop rankings
September 4, 2025

Organic Traffic Dropped Suddenly? Here’s Why (And How to Fix It)

Seeing a sudden drop in your organic traffic? Don’t panic! Find out what causes organic traffic to decrease – from SERPs to technical issues – and how to fix it.

2025phone

Join the #1 WordPress Community

The Admin Bar community is at the heart of what we do. Join in on the daily conversation and get involved.

Request Membership
The Admin Bar logo.

Explore

Community

Events

Articles

Products

Newsletter

Agency Report Card

Care Plan Toolkit

Noted!

Barfly Login

Policies

Privacy Policy

Terms of Service

Affiliate Agreement

Affiliate Disclaimer

Accessibility Statement

Privacy Settings

Misc.

Advertise

Login

Contact

© 2017-2025 The Admin Bar (a Division of OGAL Web Design) — All Rights Reserved

The Admin Bar logo.
  • Get Involved
    • Facebook Group
    • Barfly Community
    • TABLE Mastermind
  • Learn
    • Articles
    • Events
    • Newsletter
    • YouTube
    • WordPress Professionals Survey
    • SEO Weekly
    • Security Weekly
    • Accessibility Weekly
  • Products
  • About
  • Free Stuff
YouTube Facebook
Sell More Care Plans