How To Use Native WordPress Password Protection On Pages In Oxygen

Published: 11 December 2022
on channel: Oxygen
4,701
109

In this tutorial, we're using native WordPress Password Protection to hide and show content in Oxygen.

To start, we will use a code snippets plugin (or a custom plugin) to create a new condition for Oxygen using Oxygen's Conditions API.

Next, we'll add a Div element to our page or template and use our newly created condition to hide the content if the password hasn't been entered.

Finally, we'll create a new section with a Code Block element that uses the default WordPress get_the_password_form function to show the form to enter the password. We'll then add some additional elements, styles, and custom CSS to make our form more appealing.

Introduction 0:00
Adding the Oxygen Condition: 1:06
Setting Up your Template: 3:37
Adding and Styling the Password Form 5:06

Get the Has Password condition here: https://gist.github.com/Spellhammer/e...

Get Oxygen ➜ https://oxygenbuilder.com/
Subscribe ➜ https://oxygenbuilder.com/ytsubscribe
JOIN THE OXYGEN FACEBOOK GROUP FOR HELP & SECRET INFO ➜ https://oxygenbuilder.com/facebook


Watch video How To Use Native WordPress Password Protection On Pages In Oxygen online without registration, duration hours minute second in high quality. This video was added by user Oxygen 11 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,701 once and liked it 109 people.