{"id":4306,"date":"2020-04-20T20:56:22","date_gmt":"2020-04-20T20:56:22","guid":{"rendered":"http:\/\/wordpress.creativegigs.net\/docly\/docs\/rogan-wordpress-theme-documentation\/content\/code\/"},"modified":"2025-08-29T21:11:43","modified_gmt":"2025-08-29T21:11:43","slug":"code-default-theme","status":"publish","type":"docs","link":"https:\/\/docs.dasharabia.com\/?docs=docly-documentation\/code\/code-default-theme","title":{"rendered":"Code Default Theme"},"content":{"rendered":"<h2>Inline code<\/h2>\n<p>Wrap inline snippets of code with<code>&lt;code&gt;<\/code>. Be sure to escape HTML angle brackets.<\/p>\n<p>For example,\u00a0<code>&lt;section&gt;<\/code>should be wrapped as inline.\t\t<\/p>\n<pre data-line=\"\">\n\t\t\t\t<code readonly=\"true\">\n\t\t\t\t\t<xmp>console.log( 'Code is Poetry' );<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n<h2>Code blocks<\/h2>\n<p>Use\u00a0<code>&lt;pre&gt;<\/code>s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the\u00a0<code>.pre-scrollable<\/code>\u00a0class, which will set a max-height of 350px and provide a y-axis scrollbar.<\/p>\n<pre data-line=\"\">\n\t\t\t\t<code readonly=\"true\">\n\t\t\t\t\t<xmp><ul>\n    <li><a href=\"#\"><i><i><a><li>\n    <li><a href=\"#\"><i><i><a><li>\n    <li><a href=\"#\"><i><i><a><li>\n    <li><a href=\"#\"><i><i><a><li>\n<ul><\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n<h2>CSS Code<\/h2>\n<pre data-line=\"\">\n\t\t\t\t<code readonly=\"true\">\n\t\t\t\t\t<xmp>.footnotes-link::before {\n    display: none;\n}\n.footnotes-link {\n    color: #10b3d6;\n}\n.tip_content p {\n    font-size: 14px;\n}\n.tip_content p:last-child {\n    margin-bottom: 0;\n}\n.footnotes_item strong {\n    position: relative;\n}\nspan.top-arrow {\n    position: absolute;\n    top: -3px;\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n<h2>JavaScript Code<\/h2>\n<pre data-line=\"\">\n\t\t\t\t<code readonly=\"true\">\n\t\t\t\t\t<xmp>$(\".img_popup\").each(function () {\n    $(\".img_popup\").magnificPopup({\n        type: 'image',\n        closeOnContentClick: true,\n        closeBtnInside: false,\n        fixedContentPos: true,\n        removalDelay: 300,\n        mainClass: 'mfp-no-margins mfp-with-zoom',\n        image: {\n            enabled: true,\n            navigateByImgClick: true,\n            preload: [0, 1]\n        }\n    });\n})<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Inline code Wrap inline snippets of code with&lt;code&gt;. Be sure to escape HTML angle brackets. For example,\u00a0&lt;section&gt;should be wrapped as inline. console.log( &#8216;Code is Poetry&#8217; ); Code blocks Use\u00a0&lt;pre&gt;s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the\u00a0.pre-scrollable\u00a0class, which [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4632,"menu_order":16,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-4306","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs\/4306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4306"}],"version-history":[{"count":1,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs\/4306\/revisions"}],"predecessor-version":[{"id":14324,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs\/4306\/revisions\/14324"}],"up":[{"embeddable":true,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs\/4632"}],"wp:attachment":[{"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4306"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=4306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}