Skip to content

Instantly share code, notes, and snippets.

View cstielper's full-sized avatar

Chris cstielper

  • Maryland, USA
View GitHub Profile
@cstielper
cstielper / block.php
Last active May 20, 2021 15:01
Content not rendering after <InnerBlocks />
<?php
$allowed_blocks = array(
'core/heading',
);
$template = array(
array(
'core/heading',
array(
'level' => 2,
$outer_margin_padding: (
'x-small': 1,
'small': 2,
'medium': 3,
'large': 4,
);
// Outside padding
@mixin padding-left-right(
$padding_xs: null,
@cstielper
cstielper / notes.md
Last active May 14, 2019 19:18
Design Meeting Notes

Problem

"If you fail to plan, you are planning to fail."

Not enough information is being provided to developers to get from "Point A" to "Point B". Chris has built several sites in the past two months where either no/incomplete mobile design was provided, or only a mobile design of a home page was provided.

This is not good. There are too many things that happen in between a small screen and a large screen to skip this part of the process. Don should be able to attest to this based on some of the issues that arose with the Residences at Capital Crescent website although, in all fairness, those issues were more for middle screen sizes (which aren't even on Millennium's radar).

The web department can not get projects from point A to point B if we don't have any idea where point A is. So, we usually have to make an on-the-spot decision as to what that is. This should be part of the design process, not the development process.

@cstielper
cstielper / mm4-server-gh-integration.md
Last active December 12, 2018 19:18
MM4 Server GH Integration

MM4 Server GitHub Integration

WordPress Installation

  1. Install WordPress
  2. In the /wp-content/themes directory, create a folder that matches your theme's text-domain (make sure permissions are set to 755)

Add SSH Key to Server

  1. From your terminal, SSH into the server: ssh -p port user@IP
# ----------------------------------------------------------------------
# | Expires headers |
# ----------------------------------------------------------------------
# Serve resources with far-future expires headers.
#
# (!) If you don't control versioning with filename-based
# cache busting, you should consider lowering the cache times
# to something like one week.
#
# https://httpd.apache.org/docs/current/mod/mod_expires.html
@cstielper
cstielper / yoast.php
Created December 7, 2017 13:21
Move Yoast meta box to bottom of screen
/**
* Move Yoast to bottom
*/
function yoast_to_bottom() {
return 'low';
}
add_filter( 'wpseo_metabox_prio', 'yoast_to_bottom');