Skip to content

Instantly share code, notes, and snippets.

@henshaw
henshaw / preview-cloudflare-stream.php
Created February 23, 2021 18:53
Preview custom block for block-cloudflare-stream.php. Makes the block visible in the WordPress editor.
<p style="color:darkorange;"><strong>Cloudflare Stream Video Schema</strong></p>
function remove_yoast_json($data){
$data = array();
return $data;
}
add_filter('wpseo_json_ld_output', 'remove_yoast_json', 10, 1);
.intro { background:#eee; }
.intro h1 { color:#000; }
.intro p { color:#333; }
.intro { background:#eee; }
.intro h1, .intro p { color:#000; }
nav.top, nav.top a, .intro, nav.top a:link, nav.top a:visited { color:#fff; }
nav.top a:hover { color:#eee; }
/* 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; }
set_post_thumbnail_size( 150, 79, true );
add_image_size( 'single-post-thumbnail', 1200, 630 );
nav.top .logo img { height:2rem; }
<img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>">