{"id":10805560,"date":"2018-10-23T01:51:06","date_gmt":"2018-10-23T01:51:06","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/adding-custom-css-php-to-child-theme\/"},"modified":"2018-10-23T02:00:47","modified_gmt":"2018-10-23T02:00:47","slug":"adding-custom-css-php-to-child-theme","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/adding-custom-css-php-to-child-theme\/","title":{"rendered":"adding custom css &amp; php to child theme"},"content":{"rendered":"<p>I want to use a custom css and php file with my site.  I used the following code and it fails on the php file and doesn&#8217;t seem to be formatted by  the css<\/p>\n<pre><code> *ACM Plugin activation.\n *\/\nrequire_once dirname( __FILE__ ) . &#039;\/plugins\/xxxxxxx.php&#039;;\n *ACM style sheet.\n *\/\nfunction custom_style_sheet() {\nwp_enqueue_style( &#039;custom-styling&#039;, get_stylesheet_directory_uri() . &#039;\/xxxxxxx.css&#039; );\n}\nadd_action(&#039;wp_enqueue_scripts&#039;, &#039;custom_style_sheet&#039;);<\/code><\/pre>\n<p>Help<\/p>\n","protected":false},"template":"","class_list":["post-10805560","topic","type-topic","status-publish","hentry","topic-tag-child-theme","topic-tag-function-php","topic-tag-style-sheet"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10805560","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10805560\/revisions"}],"predecessor-version":[{"id":10805577,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10805560\/revisions\/10805577"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10805560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}