{"id":4136,"date":"2020-05-23T19:55:11","date_gmt":"2020-05-23T19:55:11","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=4136"},"modified":"2020-05-23T19:55:11","modified_gmt":"2020-05-23T19:55:11","slug":"change-default-sidebar-position","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/nl\/dream-theme-support-portal\/change-default-sidebar-position\/","title":{"rendered":"Wijzig de standaardpositie van de zijbalk"},"content":{"rendered":"<p>Change default sidebar position<\/p>\n<div id='wrapper'>\n<div class='inner-content'>\n<p>To change default sidebar option selected ( right ) in the post\/page edit, add this code in your child theme&rsquo;s functions.php<\/p>\n<p><code>function dt_change_default_sidebar() {<br \/><\/br>global $DT_META_BOXES;<\/code><\/p>\n<p><code>if ( $DT_META_BOXES ) {<\/code><\/p>\n<p><code>if ( isset($DT_META_BOXES[ 'dt_page_box-sidebar' ]) ) {<br \/><\/br>$DT_META_BOXES[ 'dt_page_box-sidebar' ]['fields'][0]['std'] = 'left';<br \/><\/br><\/code><\/p>\n<p><code><br \/><\/br><br \/><\/br>add_action( 'admin_init', 'dt_change_default_sidebar', 20);<\/code><\/p>\n<p>Will only apply to new pages\/posts, pages posts with already selected sidebar will not effect this.<\/p>\n<p>If it does not work, please try:<\/p>\n<p><code>add_action( 'admin_init', 'dt_change_default_sidebar', 30);<\/code><\/p>\n<p>View in <a href='https:\/\/gist.github.com\/thecodepoetry\/822895548f7701f4086a'>github<\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Change default sidebar position To change default sidebar option selected ( right ) in the post\/page edit, add this code in your child theme&rsquo;s functions.php function dt_change_default_sidebar() {global $DT_META_BOXES; if ( $DT_META_BOXES ) { if ( isset($DT_META_BOXES[ &#8216;dt_page_box-sidebar&#8217; ]) ) {$DT_META_BOXES[ &#8216;dt_page_box-sidebar&#8217; ][&#8216;fields&#8217;][0][&#8216;std&#8217;] = &#8216;left&#8217;; add_action( &#8216;admin_init&#8217;, &#8216;dt_change_default_sidebar&#8217;, 20); Will only apply to new pages\/posts,&hellip;<\/p>\n","protected":false},"author":2,"featured_media":4470,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[30,31],"tags":[],"class_list":["post-4136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dream-theme-support-portal","category-knowledgebase","category-30","category-31","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/comments?post=4136"}],"version-history":[{"count":1,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4136\/revisions"}],"predecessor-version":[{"id":4218,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4136\/revisions\/4218"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/media\/4470"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/media?parent=4136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/categories?post=4136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/tags?post=4136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}