Skip to content

Instantly share code, notes, and snippets.

View richtabor's full-sized avatar

Rich Tabor richtabor

View GitHub Profile
body {
color: $color__text-main;
font-family: $font__body;
font-size: $font__size-md;
@media screen and (min-width: 599px) {
font-size: $font__size_base;
}
}
.wp-block {
max-width: $content__width;
&[data-align="wide"] {
max-width: $content__width--wide;
}
&[data-align="full"] {
max-width: none;
}
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
function tabor_setup() {
// Add support for editor styles.
add_theme_support( 'editor-styles' );
// Enqueue editor styles.
add_editor_style( 'assets/css/style-editor.css' );
}
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
function tabor_setup() {
// Add support for editor styles.
add_theme_support( 'editor-styles' );
}
add_action( 'after_setup_theme', 'tabor_setup' );
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-127143502-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-127143502-1');
</script>
.entry-content > *.alignwide {
max-width: 1024px;
}
@richtabor
richtabor / test
Last active April 18, 2018 18:49
Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
<?php
/**
* Toggle Customizer Control
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
@richtabor
richtabor / gist:16cc517e3dfe46dae73469e4fcfc7e71
Created February 23, 2018 13:35
Amazon Polly JSON Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Permissions1",
"Effect": "Allow",
"Action": [
"s3:HeadBucket",
"polly:SynthesizeSpeech",
"polly:DescribeVoices"
if ( ! function_exists( 'tabor_site_logo' ) ) :
/**
* Output an <img> tag of the site logo.
*/
function tabor_site_logo() {
if ( has_custom_logo() ) {
echo '<div class="site-logo" itemscope itemtype="http://schema.org/Organization">';
the_custom_logo();
echo '</div>';