Skip to content

Instantly share code, notes, and snippets.

@henshaw
henshaw / preview-cloudflare-stream.php
Created Feb 23, 2021
Preview custom block for block-cloudflare-stream.php. Makes the block visible in the WordPress editor.
View preview-cloudflare-stream.php
<p style="color:darkorange;"><strong>Cloudflare Stream Video Schema</strong></p>
View schema-videoobject-example.json
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "Name of video",
"description": "Description of video",
"thumbnailUrl": [
"https://coywolf.pro/wp-content/uploads/2019/06/og-coywolf.png"
],
"uploadDate": "2021-02-21T11:34:07-06:00",
View functions-remove-yoast-json.php
function remove_yoast_json($data){
$data = array();
return $data;
}
add_filter('wpseo_json_ld_output', 'remove_yoast_json', 10, 1);
View link-colors.css
View intro-colors-elements.css
.intro { background:#eee; }
.intro h1 { color:#000; }
.intro p { color:#333; }
View intro-colors.css
.intro { background:#eee; }
.intro h1, .intro p { color:#000; }
View top-nav-colors-alternative.css
nav.top, nav.top a, .intro, nav.top a:link, nav.top a:visited { color:#fff; }
nav.top a:hover { color:#eee; }
View top-nav-colors.css
/* Colors */
nav.top, nav.top ul { background:#0E52AE; }
nav.top, nav.top a, .intro, nav.top a:link, nav.top a:visited, nav.top a:hover { color:#fff; }
nav.top .select { background:#fff; }
View functions-thumbnail-size.php
set_post_thumbnail_size( 150, 79, true );
add_image_size( 'single-post-thumbnail', 1200, 630 );
View logo-size.css
nav.top .logo img { height:2rem; }