Sloane’s Admin Custom CSS

.acf-label label { } .acf-field-number { display: inline-block; width: calc(20% – 32px); } .acf-field-number[data-name=”acf_weight”] { display: block; } .acf-field-number[data-name*=”per_portion”], .acf-field-number[data-name*=”_dv”], li > a[data-key=”field_66c57fa319a7b”] { display: none; }Continue reading

CSS Grid Stuff

html { font-size: 22px; } body { padding: 1rem; } .card { background-color: dodgerblue; color: white; padding: 1rem; height: 4rem; } .cards { max-width: 1200px; margin: 0 auto; display: grid; grid-gap: 1rem; } /* Screen larger than 600px? 2 column…Continue reading

Enqueue Custom Admin CSS

function my_custom_admin_styles() { // Ensure the file path is correct wp_enqueue_style(‘my-custom-admin-style’, get_stylesheet_directory_uri() . ‘/css/custom-admin-styles.css’); } // Hook the function to ‘admin_enqueue_scripts’ to apply it to the WordPress admin area add_action(‘admin_enqueue_scripts’, ‘my_custom_admin_styles’);Continue reading

Admin/Nav Extension – CSS

/* this is an update I made on the wpcode website that should trigger an available update badge */ .mx_nav { background: #dadada; padding: 0 0 5px 0; margin: 0px 0 -5px -20px; line-height: 27px; border-bottom: 1px solid #c5c5c5; }…Continue reading