{"id":5628119,"date":"2015-01-02T03:19:29","date_gmt":"2015-01-02T03:19:29","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/add-css-problem\/"},"modified":"2016-08-22T14:59:43","modified_gmt":"2016-08-22T14:59:43","slug":"add-css-problem","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/add-css-problem\/","title":{"rendered":"add css  problem"},"content":{"rendered":"<p>convert html template  to wordpress i use &#8216;functions.php&#8217; to call css . here is the code of &#8216;functions.php&#8217;- that i used<\/p>\n<p>&lt;?php<br \/>\nfunction my_function_name(){<\/p>\n<p>    wp_register_style(&#8216;bootstrap&#8217;,<br \/>\n                      get_template_directory_uri() .&#8217;\/css\/bootstrap.min.css&#8217;,<br \/>\n                      array(),&#8217;3.1.0&#8242;,&#8217;all&#8217;<br \/>\n                     );<br \/>\n   wp_enqueue_style(&#8216;bootstrap&#8217;);<\/p>\n<p>}<br \/>\nadd_action(&#8216; wp_enqueue_scripts&#8217;,&#8217;my_function_name&#8217;);<\/p>\n<p>?&gt;<\/p>\n<p>but css didnot call at wordpress. is there anything add at index.php for css stylesheet ?<\/p>\n","protected":false},"template":"","class_list":["post-5628119","topic","type-topic","status-closed","hentry","topic-tag-css-problem","topic-tag-function-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5628119","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\/5628119\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5628119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}