{"id":4679,"date":"2024-09-26T10:39:29","date_gmt":"2024-09-26T09:39:29","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=4679"},"modified":"2024-12-13T16:13:03","modified_gmt":"2024-12-13T16:13:03","slug":"styling-admin-view","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/styling\/styling-admin-view","title":{"rendered":"Styling admin view"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Creating a stylesheet that will be used when viewing the site admin side (e.g. editing a post)<\/h4>\n\n\n\n<p>In functions.php:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/***** LOAD ADMIN VIEW STYLES WE WANT TO USE *****\nfunction admin_style() {\n    wp_enqueue_style('admin-styles', get_stylesheet_directory_uri() . '\/style-admin.css');\n}\nadd_action('admin_enqueue_scripts', 'admin_style');<\/code><\/pre>\n\n\n\n<p>Create a file called style-admin.css and store in your theme&#8217;s root folder (along with style.css).<br>Some example content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/*----- Set our heading fonts in a special way -----*\/\n\n.is-desktop-preview h4 {\n  font-size: 20px;\n  line-height: 24px;\n}\n\n.is-desktop-preview h5 {\n\tfont-size: 16px;\n\tline-height: 22px;\n\tcolor: #fff;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Creating a stylesheet that will be used when viewing the site admin side (e.g. editing a post) In functions.php: Create a file called style-admin.css and store in your theme&#8217;s root folder (along with style.css).Some example content:<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[286,181],"tags":[],"class_list":["post-4679","post","type-post","status-publish","format-standard","hentry","category-admin-area","category-styling"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=4679"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4679\/revisions"}],"predecessor-version":[{"id":4683,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4679\/revisions\/4683"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=4679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=4679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=4679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}