This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // <- Remove <?php if your using this snippet | |
genesis_unregister_layout( 'sidebar-sidebar-content' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // <- Remove <?php if your using this snippet | |
genesis_set_default_layout( 'top-sidebar-content-sidebar' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // <- Remove <?php if your using this snippet | |
// Register New Layout | |
function jm_custom_layout() { | |
genesis_register_layout( 'layout-name', array( | |
'label' => __('custom/layout/name', 'genesis'), | |
'img' => get_bloginfo('stylesheet_directory') . '/images/yourlayout.gif' | |
) ); | |
} | |
add_action( 'init', 'jm_custom_layout' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Optimize WooCommerce Scripts | |
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
function child_manage_woocommerce_styles() { | |
//remove generator meta tag | |
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Adding Html Blocks in Genesis Hooks | |
* | |
* @package Genese Gists | |
* @since 0.0.1 | |
* @link | |
* @author John McCarthy <[email protected]> | |
* @copyright Copyright (c) 2014, John McCarthy | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//*********** IMPORTS ***************** | |
var gulp = require('gulp'); | |
var sass = require('gulp-ruby-sass'); | |
var gutil = require('gulp-util'); | |
var rename = require("gulp-rename"); | |
var map = require("map-stream"); | |
var livereload = require("gulp-livereload"); | |
var concat = require("gulp-concat"); | |
var uglify = require('gulp-uglify'); | |
var watch = require('gulp-watch'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "MyProject", | |
"version": "1.0.0", | |
"dependencies": { | |
"gulp": "*", | |
"gulp-ruby-sass": "*", | |
"gulp-util": "*", | |
"gulp-rename": "*", | |
"map-stream": "*", | |
"gulp-livereload": "*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// re-order child style | |
function src_reorder_child_style() { | |
wp_dequeue_style( 'responsive-style-css' ); | |
wp_deregister_style( 'responsive-style-css'); | |
wp_enqueue_style( 'child-style', get_stylesheet_uri() ); | |
} | |
add_action( 'wp_enqueue_scripts', 'src_reorder_child_style', 20 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Open New window onclick Javasript method --> | |
<a href="http://chriscoyier.net" onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;">This link will open in new window/tab</a> | |
<!-- Open New window onclick HTML5 method --> | |
<a href="http://chriscoyier.net" target="_blank">This link will open in new window/tab</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.centerimgindiv { | |
margin-left: auto; | |
margin-right: auto; | |
display:block; | |
} | |
/*No Wrap Floats!!!*/ | |
p { | |
overflow:hidden; | |
} |