Skip to content

Instantly share code, notes, and snippets.

View melissajclark's full-sized avatar

Melissa Jean Clark melissajclark

View GitHub Profile
@melissajclark
melissajclark / functions.php
Last active March 19, 2024 19:23
WordPress sub-menu JS: turn [a href="#"] links into <button> and more
<?php
/**
* Enqueue the JS file.
*
* @since 1.0.0
*
* @return void
*/
function clientname_styles_and_scripts() {
@melissajclark
melissajclark / block-editor-admin.css
Created November 20, 2024 19:31
WordPress styling of admin according to current page/post/etc template
/* CSS for different templates, some examples below */
.post-type-page.sky-full-width .editor-styles-wrapper {
padding-bottom: var(--wp--preset--spacing--80);
background-color: var(--wp--preset--color--sky);
background-image: url("../images/[email protected]");
background-size: 300px 300px;
}
.post-type-page:not(.default-page-template) .editor-styles-wrapper .nt-page__content-wrap {