Skip to content

Instantly share code, notes, and snippets.

View NorthTexasCreative's full-sized avatar

Carla Chalmers NorthTexasCreative

  • North Texas Creative, LLC
  • Stephenville, TX
View GitHub Profile
import gql from 'graphql-tag'
import { client } from '../utils/apollo-client'
const { parse } = wp.blocks;
const { select, subscribe, dispatch } = wp.data;
const GET_PAGE_BLOCK_TEMPLATE = gql`
query GET_PAGE_BLOCK_TEMPLATE($id: ID!, $template: String) {
page( id: $id ) {
blockTemplate( pageTemplate: $template )
}
}
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx
spec:
replicas: 1
selector:
app: nginx
template:
metadata:
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@NorthTexasCreative
NorthTexasCreative / home
Created August 13, 2016 16:04 — forked from flexseth/home
Home page parallax in Genesis Sample child theme (parallax header)
/**
* This file adds the Home Page to the Parallax Pro Theme.
*
* @author Brad Dalton
* @package Parallax
* @subpackage Customizations
*/
add_action( 'genesis_meta', 'parallax_home_genesis_meta' );
/**
@NorthTexasCreative
NorthTexasCreative / Open Graph HTML and header tags
Created July 11, 2016 16:51 — forked from anneallen/Open Graph HTML and header tags
Add Open Graph HTML and header tags to Genesis Theme
/**Adding the Open Graph in the Language Attributes*/
add_filter('language_attributes', 'child_add_opengraph_doctype');
function child_add_opengraph_doctype( $output ) {
return $output . ' xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"';
}
/** Add Open Graph meta tag to head*/
@NorthTexasCreative
NorthTexasCreative / wp-config.php
Created May 31, 2016 11:11 — forked from ozws/wp-config.php
Oz wp-config
<?php
/*
Additional notes for this gist:
- You'll see that half of the constants are commented out. Nice to
have them there when needed.
- Using a non-standard WP directory structure.
- See BuB note below. Possible items to change during migration:
- $table_prefix
- $dbname, $dbuser, $dbpass
*/
<?php
/**
* Move Genesis child theme style sheet to a much later priority to give any plugins a chance to load first.
* @author Alain Schlesser (alain.schlesser@gmail.com)
*
* @see http://docs.garyjones.co.uk/genesis/2.0.0/function-genesis_load_stylesheet.html
*/
function as_postpone_genesis_stylesheet() {
@NorthTexasCreative
NorthTexasCreative / functions.php
Created October 11, 2015 00:39 — forked from srikat/functions.php
How to display a magnifying glass icon in the center of an image on hover using CSS. https://sridharkatakam.com/how-to-display-a-magnifying-glass-icon-in-the-center-of-an-image-on-hover-using-css/
// Make Font Awesome available
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' );
function enqueue_font_awesome() {
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' );
}
// Remove WooCommerce Theme Support admin message
add_theme_support( 'woocommerce' );
<?php
/**
* "Friendlier, Safer WordPress Admin Areas"
* Presented by Cliff Seal at WordCamp Atlanta 2015
* Slides: http://www.slideshare.net/cliffseal/wp-admin
*
* Plugin Name: A Better Admin Experience
* Plugin URI: http://evermo.re
* Description: Cleans up and sanitizes the WordPress admin area
* Version: 1.0