Skip to main content

Conditionals in Pinegrow for WordPress

Conditionals in Pinegrow for WordPress

In today’s video, we are going to take a simple login button and show how we can use conditions to change it button to a “My Account” button if the user is logged in.

YouTube video

To do that, we need to determine whether the user is logged in, and if so, hide the “log in” button and show the “my account” button. Luckily, Pinegrow comes with over 70 built-in conditionals that you can use inside your theme or blocks. To make it even more interesting, most of these conditionals have extra options that you can specify so that you can group them, check if a condition is NOT met. Taking it one step farther, Pinegrow also lets you write your own conditionals for anything that they might not have included. You can even use operators such as OR, AND, or ELSE to to fine tune your conditions.

Recent Posts

  • Pinegrow Countdown: Day 5 – Desktop or Plugin?

    With Pinegrow’s Black Friday sale and the WordPress plugin being released on December 1st, you might be asking yourself which product is right for you. I can’t answer that question for you, but I can help you think through some of the pros and cons of each one and why you might want to use […]

  • Pinegrow Countdown: Day 6 – What’s New

    Pinegrow revealed that they would be releasing both the Pinegrow WordPress Plugin and Pinegrow Desktop 7.0 next week on December 1st. In this video, I share some of the new features in both versions, and I’ll talk a little about pricing and the Black Friday / Cyber Monday sale.

  • WP Tavern Interview on Building Websites With Pinegrow’s New WordPress Plugin

    Last week I had the pleasure of being interviewed by Nathan Wrigley for the WP Tavern podcast. We talked about the upcoming Pinegrow WordPress plugin and how it lets my agency build custom, native WordPress blocks and themes for my clients. #51 – Adam Lowe on Building Websites With Pinegrow’s New WordPress Plugin

  • Peak Performance Digital: Agency Introduction (November 2022 Update)

    This video presents information about my company, Peak Performance Digital. I cover the basics of who we are, what we do, how we operate, and what you can expect when working with us. This video is for companies who might want to hire us to work for them, or agencies who are looking for a white label partner.

  • WordPress Menu Accessibility – Part 2: Detailed Requirements and Final Test

    In this video, I do a deep dive into the requirements to make an accessible Website Navigation Menu. I test the newly released Twenty Twenty-Three theme in WordPress 6.1 and show you the specific test criteria as I go along.