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 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; }
View starter-theme-logo-image.php
<img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>">