Skip to content

Instantly share code, notes, and snippets.

View PittsburghChris's full-sized avatar

Chris Field PittsburghChris

View GitHub Profile
<?php
/**
* Handles display of 404 page not found errors.
*
* Custom 404 page not found error template. Exclude Hidden Pages From 404 Page Not Found Error Page.
*
* @category Genesis
* @package Templates
* @author Brad Dalton
* @link http://wpsites.net/web-design/add-content-404-page-genesis/
@cdils
cdils / CTA-Widgets.php
Created April 2, 2013 22:57
CTA Widget displays for carriedils.com
/**
* Add CTA widget support for site. If widget not active, don't display
*
*/
function mp_cta_genesis() {
// Don't display the CTA on the home page, since it's built into the MP theme
if ( is_home() ) {
return;
}
define( 'CHILD_THEME_VERSION', filemtime( get_stylesheet_directory() . '/style.css' ) );
@robneu
robneu / functions.php
Last active December 10, 2015 01:18
Add a mobile responsive menu to a Genesis Child Theme - Add to functions.php
<?php
//* Require Child Theme Functions
require_once( CHILD_DIR . '/lib/theme-js.php' );
add_action( 'genesis_header_right', 'prefix_mobile_menu_toggle', 5 );
/**
* Add a mobile menu toggle element
* to expand and collapse a mobile menu.
*
* @author FAT Media
@surefirewebserv
surefirewebserv / simple-genesis-homepage.php
Last active April 16, 2019 14:22
Simple Homepage Layout for Genesis Framework.
<?php
add_action( 'genesis_after_header', 'sf_featured_slideshow' );
/**
* Add slide show widget area after the header.
*
* @author Sure Fire Web Services
* @link http://surefirewebservices.com/?p=1542
*
* @return Return null if not the homepage post.
*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Can’t Hug Every Cat</title>
<style>
body {
font: 1em/1.5 Cambria, Georgia, serif;
margin: 0 5%;