1 STOP CAP 1 STOP CAP
  • Home 
  • Application 
  • About Us 
  • Contact Us 
  • Become a Partner 
Learn More
Loading...
  1. Home
  2. Docy WordPress Theme
  3. Using Shortcodes
  4. Conditional Content [conditional_data]
Updated on March 17, 2021

Docy WordPress Theme

  • Folder icon closed Folder open iconGetting Started
    • Theme Installation
    • Plugins Installation
    • Demo Import
  • Folder icon closed Folder open iconDocy Options
    • Page Options
    • Theme Settings
  • Folder icon closed Folder open iconDocumentation
    • Create Onepage Documentation
    • Footnote
    • User Feedback
    • Creating/Editing Documentation
    • How to create Changelogs
  • Folder icon closed Folder open iconBlog Part
    • TOC Layout
  • Folder icon closed Folder open iconTips
    • Updating The Theme
    • Optimize Images
    • Language Translations
    • Use the theme’s list style with Gutenberg block
    • How to create Sign in and Sign up pages
  • Folder icon closed Folder open iconUsing Shortcodes
    • [direction]
    • Conditional Content [conditional_data]
    • [terms]
  • Folder icon closed Folder open iconFAQ
    • How to Paginate a Post?
    • How to set the site’s favicon?
    • How to change the author’s avatar?
    • How to update premium plugins?
    • How to apply custom CSS code.

Conditional Content [conditional_data]

Estimated reading: 1 minute 252 views

You may see a dropdown list of OS list on the doc details page right sidebar on the theme demo. See the screenshot below-

You can display conditional contents in your documentation using this dropdown. Visitor of your website can see the alternative info based on the dropdown value selected.

Navigate to [direction]Theme Settings > Doc Settings > Right Sidebar[/direction]. From there, you will find the Dropdown Options (which is marked in the screenshot below). You can create/add the dropdown 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 for showing different keyboard shortcuts for different OS.

Watch the video tutorial to see the process of creating, using and applying the conditional contents.

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes 2 No 1

Leave a Comment Cancel reply

Share this Doc

Conditional Content [conditional_data]

Or copy link

Clipboard Icon
CONTENTS

Powered By EazyDocs

Copyright © 1stopcap 2024.

  • Privacy Policy
  • Terms of Use