This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function qorp_about_block_template_lookup( $template, $type, array $templates ) { | |
if ( $template && 'page-about.php' === $templates[0] ) { | |
add_filter( 'the_content', 'qorp_append_post_meta_output' ); | |
} | |
} | |
add_filter( 'page_template', 'qorp_about_block_template_lookup', 20, 3 ); | |
function qorp_append_post_meta_output( $content ) { | |
ob_start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> | |
<!-- wp:group {"tagName":"main","className":"site-content","style":{"spacing":{"margin":{"top":"0"}}}} --> | |
<main class="wp-block-group site-content" style="margin-top:0"> | |
<!-- wp:pattern {"slug":"frost/page-home"} /--> | |
</main> | |
<!-- /wp:group --> | |
<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apiVersion": 2, | |
"name": "namespace/carousel", | |
"title": "Carousel", | |
"category": "custom-category", | |
"icon": "slides", | |
"keywords": [ "carousel", "slider" ], | |
"description": "Add a swipeable carousel of content.", | |
"supports": { | |
"html": false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SVG, Path } from '@wordpress/components'; | |
const arrowLeft = ( | |
<SVG fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> | |
<Path | |
d="m1.333 14.389 9.466-9.466c.872-.872 2.326-.872 3.198 0s.872 2.326 0 3.198l-5.589 5.621h20.677c1.26 0 2.262 1.002 2.262 2.261s-1.002 2.262-2.262 2.262h-20.677l5.589 5.589c.872.872.872 2.326 0 3.198-.452.452-1.034.678-1.615.678s-1.163-.226-1.615-.678l-9.434-9.434c-.42-.42-.678-1.002-.678-1.615s.226-1.195.678-1.615z" | |
fill="currentColor" | |
/> | |
</SVG> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Customizer setup | |
* | |
* @package YourChildTheme | |
*/ | |
namespace YourChildTheme\Customizer; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- wp:heading {"level":1} --> | |
<h1>This is a heading (H1)</h1> | |
<!-- /wp:heading --> | |
<!-- wp:heading --> | |
<h2>This is a heading (H2)</h2> | |
<!-- /wp:heading --> | |
<!-- wp:heading {"level":3} --> | |
<h3>This is a heading (H3)</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* Set initial saturation and lightness values */ | |
--sat: 50%; | |
--light: 50%; | |
/* Set amount of light & saturation to change for darker & lighter color variants */ | |
--shader: 15%; | |
/* Calculate saturation values for lighter & darker color variations */ | |
--satDarker: calc(var(--sat) + var(--shader)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--my-var: 🎃; | |
} | |
.foo { | |
color: var(--my-var); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.foo { | |
color: var(--my-var, red); /* Red if --my-var is not defined */ | |
} |