Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian Gardner bgardner

View GitHub Profile
@bgardner
bgardner / style.css
Created Apr 13, 2014
Gradient Background
View style.css
.site-footer {
/* fallback */
background-color: #333;
/* Safari, Chrome */
background: -webkit-linear-gradient(top, #555, #333);
/* Firefox */
background: -moz-linear-gradient(top, #555, #333);
@bgardner
bgardner / functions.php
Last active Aug 29, 2015
Remove the secondary navigation menu with the Genesis Framework.
View functions.php
<?php
//* Do NOT include the opening php tag
//* Remove secondary navigation menu
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'genesis' ) ) );
@bgardner
bgardner / functions.php
Last active Aug 29, 2015
Remove the primary sidebar with the Genesis Framework.
View functions.php
<?php
//* Do NOT include the opening php tag
//* Remove the primary sidebar
unregister_sidebar( 'sidebar' );
@bgardner
bgardner / functions.php
Created Jul 27, 2014
Reposition the primary navigation menu with the Genesis Framework.
View functions.php
<?php
//* Do NOT include the opening php tag
//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );
@bgardner
bgardner / functions.php
Created Jul 27, 2014
Reposition the secondary navigation menu with the Genesis Framework.
View functions.php
<?php
//* Do NOT include the opening php tag
//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before_header', 'genesis_do_subnav' );
@bgardner
bgardner / functions.php
Last active Aug 29, 2015
Remove the primary/secondary navigation menus with the Genesis Framework.
View functions.php
<?php
//* Do NOT include the opening php tag
//* Remove primary/secondary navigation menus
remove_theme_support( 'genesis-menus' );
@bgardner
bgardner / functions.php
Last active Aug 29, 2015
Remove the primary navigation menu with the Genesis Framework.
View functions.php
<?php
//* Do NOT include the opening php tag
//* Remove primary navigation menu
add_theme_support( 'genesis-menus', array( 'secondary' => __( 'Secondary Navigation Menu', 'genesis' ) ) );
@bgardner
bgardner / functions.php
Created Aug 1, 2014
Remove inpost layouts with the Genesis Framework.
View functions.php
<?php
//* Do NOT include the opening php tag
//* Remove inpost layouts
remove_theme_support( 'genesis-inpost-layouts' );
@bgardner
bgardner / style.css
Last active Aug 29, 2015
CSS to modify Gravatar size with the Genesis Framework.
View style.css
/* Author Box Gravatar
--------------------------------------------- */
.author-box .avatar {
height: 48px;
width: 48px;
}
/* Entry Comments Gravatar
--------------------------------------------- */
@bgardner
bgardner / sample.html
Created Aug 14, 2014
Custom footer with heart Dashicon with the Genesis Framework.
View sample.html
<p>Handcrafted with <span class="dashicons dashicons-heart"></span> by moi. Powered by the <a href="http://newrainmaker.com/platform/">Rainmaker Platform</a>.</p>
You can’t perform that action at this time.