Conditional Content [conditional_data]

Estimated reading: 2 minutes 361 views

Summary: Conditional content lets you display different information based on user selection. With Docy theme’s OS dropdown, users instantly see relevant commands. Enable this feature through EazyDocs settings and the provided shortcode.

What is Conditional Content?

Conditional content allows you to show or hide certain parts of a page depending on the visitor’s selection. This makes your documentation more dynamic—perfect for showing different commands, shortcuts, or instructions for different operating systems.

On the Docy theme demo, you’ll notice an OS selection dropdown in the right sidebar of a documentation page. When users choose an option, the displayed content changes accordingly.

How to Enable the Conditional Dropdown

You can display conditional contents in your documentation using this dropdown. The visitor to your website can see alternative information based on the drop-down value selected.

Navigate to [direction]EazyDocs > Settings > Doc Single> Right Sidebar[/direction]. From there, you will find the drop-down options (which are marked in the screenshot below). You can create/add drop-down list items from this option.

Use the [conditional_data dependency="dropdown_title_value"]] Content [[/conditional_data] shortcode to display the conditional contents on your documentation. For example, you can use this dropdown to show different keyboard shortcuts for different OS.

Video Tutorial

Watch the video guide to learn how to create, set up, and apply conditional content step by step.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

Conditional Content [conditional_data]

Or copy link

CONTENTS