I hereby claim:
- I am johnregan3 on github.
- I am johnregan3 (https://keybase.io/johnregan3) on keybase.
- I have a public key whose fingerprint is BF11 701D 8DF1 68F1 8796 28ED A894 0B45 6721 8112
To claim this, I am signing this object:
/* Custom Editor Styles */ | |
/* | |
* With some edits, this can be used as a base for your Custom Editor Styles. | |
* Note that this is for demonstration purposes only, and some elements may not | |
* be covered here. | |
*/ | |
/* Approximate the theme width, except for full-width images. */ | |
.wp-block:not( '.editor-block-list__block["data=full"]' ) { |
<?php | |
/** | |
* Enqueue the Gutenberg editor stylesheet. | |
* | |
* Put this in your functions.php. | |
* | |
* @action enqueue_block_editor_assets | |
*/ | |
function jr3_enqueue_gutenberg() { | |
// Make sure you link this to your actual file. |
.alignwide { | |
/* Set these margins to work with your own theme. */ | |
margin-left: -80px; | |
margin-right: -80px; | |
max-width: 100vw; | |
} | |
.alignfull { | |
margin-left: calc(-100vw / 2 + 100% / 2); | |
margin-right: calc(-100vw / 2 + 100% / 2); |
<?php | |
/** | |
* Add Theme Support for wide and full-width images. | |
* | |
* Add this to your theme's functions.php, or wherever else | |
* you are adding your add_theme_support() functions. | |
* | |
* @action after_setup_theme | |
*/ | |
function jr3_theme_setup() { |
I hereby claim:
To claim this, I am signing this object:
<?php | |
define('DOMAIN_CURRENT_SITE', 'local-www.kiss925.com'); | |
// ** Site URL settings ** // | |
define('WP_SITEURL', 'local-www.kiss925.com'); | |
define('WP_HOME', 'local-www.kiss925.com'); |
server { | |
listen 80; | |
listen 443 ssl; | |
server_name local-www.network.rogersradio.ca local-www.kiss925.com local-www.sonic1029.com local-www.jackfm.com; | |
root /srv/www/musicradio/build/webroot; | |
include /etc/nginx/nginx-wp-common.conf; | |
} |
<?php | |
/** | |
* Slightly modified version of the default WP AMP stylesheet, style.php. | |
* | |
* This is pared down for clarity. | |
* | |
* @link https://github.com/Automattic/amp-wp/blob/master/templates/style.php | |
*/ | |
?> | |
/* Merriweather fonts */ |
<?php | |
/** | |
* Allow custom actions in our AMP template. | |
*/ | |
function jr3_amp_add_custom_actions() { | |
add_filter( 'the_content', 'jr3_amp_add_featured_image' ); | |
} | |
add_action( 'pre_amp_render_post', 'jr3_amp_add_custom_actions' ); | |
/** |
<?php | |
/** | |
* Strip out all shortcode content. | |
* | |
* This is a quick and dirty way | |
* to ensure no shortcodes introduce | |
* invalid markup into an amp template. | |
* | |
* @param string $content WP Post content. | |
* |