Zengarden’s Classes and Ids

Below you find the classes and ids in Zengarden’s index file. I used a terminal window on a MacBook like this: grep “id=”  index.html grep “class=” index html IDS IN ZENGARDEN'S INDEX.HTML <body id="css-zen-garden"> <section class="intro" id="zen-intro"> <div class="summary" id="zen-summary" role="article"> <div class="preamble" id="zen-preamble" role="article"> <div class="main supporting" id="zen-supporting" role="main"> <div class="explanation" id="zen-explanation" role="article"> <div […]

Plugin CSS i WordPress

Efter en række eksperimenter har jeg fundet denne opskrift, der hooker et stylesheet rigtigt ind i WP dashboard. Virker både for admin og øvrige registrerede brugere: add_action( 'admin_enqueue_scripts', 'safely_add_stylesheet_to_admin' ); /** * Add stylesheet to the page */ function safely_add_stylesheet_to_admin() { wp_enqueue_style( 'prefix-style', plugins_url('style_admin.css', __FILE__) ); }