{"id":86,"date":"2021-03-17T10:56:13","date_gmt":"2021-03-17T10:56:13","guid":{"rendered":"https:\/\/helpdesk.spider-themes.net\/docs\/docy-wordpress-theme\/using-shortcodes\/"},"modified":"2021-03-17T10:56:13","modified_gmt":"2021-03-17T10:56:13","slug":"using-shortcodes","status":"publish","type":"docs","link":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/docs\/docy-wordpress-theme\/using-shortcodes\/","title":{"rendered":"Shortcodes and HTML Classes"},"content":{"rendered":"\n<p>When a shortcode is inserted into a WordPress post or page, it gets replaced with other content. In other words, we instruct WordPress to locate the macro enclosed in square brackets ([ ]) and replace it with the relevant dynamic content generated by a PHP function.<\/p>\n\n\n\n<p>Additionally, you can utilize the preset classes in the theme to quickly and efficiently create your design. Furthermore, using pre-defined classes will ensure that your website is dark mode friendly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shortcodes in WordPress allow dynamic content generation by replacing macros with PHP functions. Utilizing built-in theme classes simplifies design and ensures your site remains accessible and visually appealing, especially in dark mode.<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":12,"menu_order":6,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-86","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":0,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/86\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/12"}],"wp:attachment":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}