{"id":3674,"date":"2018-05-21T14:09:00","date_gmt":"2018-05-21T14:09:00","guid":{"rendered":"https:\/\/purelysupp.com\/wordpress\/?p=3674"},"modified":"2022-10-16T14:10:20","modified_gmt":"2022-10-16T14:10:20","slug":"override-genesis-theme-settings-layout-with-custom-templates","status":"publish","type":"post","link":"https:\/\/purelysupp.com\/wordpress\/code-snippets\/override-genesis-theme-settings-layout-with-custom-templates\/","title":{"rendered":"Override Genesis Theme Settings Layout with Custom Templates"},"content":{"rendered":"\n<p>Add the following code to your WordPress theme&#8217;s function.php file, or a functionality plugin to override Genesis Theme Settings Layout with Custom Templates.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/ Force layout\nadd_filter('genesis_options', 'content_sidebar_layout', 10, 2);\nfunction content_sidebar_layout($options, $setting) {\n    if($setting == GENESIS_SETTINGS_FIELD)\n        $options&#91;'site_layout'] = 'content-sidebar';\n    return $options;\n}\ngenesis();<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Add the following code to your WordPress theme&#8217;s function.php file, or a functionality plugin to override Genesis Theme Settings Layout with Custom Templates.<\/p>\n","protected":false},"author":1,"featured_media":10674,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","iawp_total_views":5,"wds_primary_category":56,"footnotes":""},"categories":[56],"tags":[110,227,64],"class_list":{"0":"post-3674","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-code-snippets","8":"tag-code","9":"tag-custom-templates","10":"tag-genesis-framework","11":"entry"},"featured_image_src":"https:\/\/purelysupp.com\/wordpress\/wp-content\/uploads\/sites\/2\/2022\/09\/Genesis-Code-Snippets-600x400.jpg","featured_image_src_square":"https:\/\/purelysupp.com\/wordpress\/wp-content\/uploads\/sites\/2\/2022\/09\/Genesis-Code-Snippets-600x515.jpg","author_info":{"display_name":"Jack Alltrade","author_link":"https:\/\/purelysupp.com\/wordpress\/author\/jacka11trade\/"},"_links":{"self":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3674"}],"version-history":[{"count":2,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3674\/revisions"}],"predecessor-version":[{"id":10690,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3674\/revisions\/10690"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/media\/10674"}],"wp:attachment":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}