{"id":14879,"date":"2021-03-17T11:01:03","date_gmt":"2021-03-17T11:01:03","guid":{"rendered":"https:\/\/helpdesk.spider-themes.net\/docs\/docy-wordpress-theme\/using-shortcodes\/conditional-content-conditional_data\/"},"modified":"2021-03-17T11:01:03","modified_gmt":"2021-03-17T11:01:03","slug":"conditional-content-conditional_data","status":"publish","type":"docs","link":"https:\/\/landpagy.twixxer.com\/index.php\/docs\/docy-wordpress-theme\/using-shortcodes\/conditional-content-conditional_data\/","title":{"rendered":"Conditional Content [conditional_data]"},"content":{"rendered":"\r\n<p>You may see a dropdown list of OS list on the doc details page right sidebar on the theme demo. See the screenshot below-<\/p>\r\n\r\n\r\n\r\n<p>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. <\/p>\r\n\r\n\r\n\r\n<p>Navigate to [direction]Theme Settings &gt; Doc Settings &gt; 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.<\/p>\r\n\r\n\r\n\r\n<p>Use the <code>[conditional_data dependency=\"dropdown_title_value\"] Content [\/conditional_data]<\/code> shortcode to display the conditional contents on your documentation. For example, you can use this dropdown for showing different keyboard shortcuts for different OS. <\/p>\r\n\r\n\r\n\r\n<p>Watch the video tutorial to see the process of creating, using and applying the conditional contents. <\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\r\n<iframe title=\"Display Conditional content in Docly WordPress theme\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/muNTEVSShfs?start=87&#038;feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\r\n<\/div><\/figure>\r\n\r\n\r\n\r\n<p><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>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 &gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":14877,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-14879","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/docs\/14879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/comments?post=14879"}],"version-history":[{"count":0,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/docs\/14879\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/docs\/14877"}],"wp:attachment":[{"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/media?parent=14879"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=14879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}