{"id":5539630,"date":"2014-12-03T05:50:00","date_gmt":"2014-12-03T05:50:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/responsive-child-theme-function-sidebarphp\/"},"modified":"2016-08-22T13:09:50","modified_gmt":"2016-08-22T13:09:50","slug":"responsive-child-theme-function-sidebarphp","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/responsive-child-theme-function-sidebarphp\/","title":{"rendered":"Responsive child theme function-sidebar.php"},"content":{"rendered":"<p>I am using Responsive theme and created a child theme too where I edit my files. I&#8217;d like to add some custom sidebars to custom templates. I learned I can use register sidebar function with array and add that to my template page. If I add this function under function-sidebar.php in mother theme, it shows under widget sections but when I put the &lt;?php if ( !dynamic_sidebar( &#8216;custom-sidebar&#8217; ) ) : ?&gt; in the template in child theme the front site breaks.<br \/>\nAlso when I add the function to function-sidebar.php in child theme, nothing happens.<\/p>\n<p>Another question: when I add function.php in the main directory to my child theme the whole site breaks. I thought I can include any files from mother theme into child theme. <\/p>\n<p>Any suggestions please?<br \/>\nThanks<\/p>\n","protected":false},"template":"","class_list":["post-5539630","topic","type-topic","status-closed","hentry","topic-tag-function-php","topic-tag-responsive-theme"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5539630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5539630\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5539630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}