{"id":8372767,"date":"2016-10-30T10:27:34","date_gmt":"2016-10-30T10:27:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/theme-child-and-new-style-css\/"},"modified":"2016-10-30T10:27:34","modified_gmt":"2016-10-30T10:27:34","slug":"theme-child-and-new-style-css","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/theme-child-and-new-style-css\/","title":{"rendered":"Theme child and new style.css"},"content":{"rendered":"<p>Hi friends,<br \/>\nI&#8217;ve created a theme child as suggested here:https:\/\/codex.wordpress.org\/it:Temi_Child<\/p>\n<p>and I&#8217;ve not created a stile.css containing the @import function, but put this code into the new one functions.php:<\/p>\n<pre><code>&lt;?php\n\nadd_action( &#039;wp_enqueue_scripts&#039;, &#039;enqueue_parent_theme_style&#039; );\nfunction enqueue_parent_theme_style() {\n    wp_enqueue_style( &#039;parent-style&#039;, get_template_directory_uri().&#039;\/style.css&#039; );\n}<\/code><\/pre>\n<p>And now for example if I want to assign a style to my new widget, I can adding code into the new style.css into the template_child and all work fine.<\/p>\n<p><strong>But happen this too:<\/strong><\/p>\n<p><em>if I want to change css attributes to the original template, adding css code to the new style.css made no change. I need change again the original style sheet<\/em><\/p>\n<p>where have I gone wrong? \ud83d\ude42<\/p>\n","protected":false},"template":"","class_list":["post-8372767","topic","type-topic","status-publish","hentry","topic-tag-child-theme","topic-tag-function-php","topic-tag-style-css"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8372767","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\/8372767\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8372767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}