Skip to content

Instantly share code, notes, and snippets.

Avatar

Carrie Dils cdils

View GitHub Profile
View (in)SPYR Theme Styles - Default Blue.css
/***** Default: Blue */
.base-blue a,.base-blue h2 a:hover,.base-blue #footer a:hover { color:#0988ce; }
.base-blue #title a { border-color:#0988ce;color:#0988ce; }
.base-blue #title a:hover { border-color:#065e8f;color:#065e8f; }
.base-blue ::-moz-selection,.base-blue ::selection { background-color:#0988ce; }
.base-blue .menu-primary a:hover,.base-blue .menu-primary .current-menu-item a,.base-blue .menu-secondary a:hover,.base-blue .menu-secondary .current-menu-item a { border-color:#0988ce;color:#0988ce; }
.base-blue #content .entry-title,.base-blue #content .entry-title a { color:#0988ce; }
.base-blue .single .post-meta a:hover,.base-blue .widget_recent_entries a:hover,.base-blue .widget_archive a:hover,.base-blue .widget_categories a:hover,.base-blue #sidebar .widget_recent_comments a:hover,.base-blue #sidebar .widget_nav_menu a:hover,.base-blue .widget_links a:hover { color:#0988ce; }
.base-blue .post-info .post-comments a { background-position: center -42px; }
.base-blue .widget_inspyr_subscribe .widget
@cdils
cdils / inSPYR-Custom.php
Last active Dec 10, 2015
Add a custom design to the inSPRY theme for Genesis Framework http://wp.me/p2Vyfh-ac
View inSPYR-Custom.php
<?php /*
Theme Name: (in)SPYR
Theme URI: http://in.spyr.me
Author: Spyr Media
Author URI: http://spyr.me
*/
/*** Theme Options */
if (!class_exists('inspyr_theme')) {
class inspyr_theme {
@cdils
cdils / headerhook.php
Created Dec 24, 2012
Genesis Framework: Move the header up before the main wrapper <div id="wrap">, add this to your functions.php. http://wp.me/p2Vyfh-fi
View headerhook.php
remove_action( 'genesis_header', 'genesis_do_header' );
add_action( 'genesis_before', 'genesis_do_header' );
View footerhook.php
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_after', 'genesis_do_footer' );
@cdils
cdils / navhook.php
Created Dec 24, 2012
Genesis Framework - Move Navigation http://wp.me/p2Vyfh-fi
View navhook.php
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before', 'genesis_do_nav' );
@cdils
cdils / associatethemehome.php
Created Dec 24, 2012
Customization for the Associate Theme Home page http://wp.me/p2Vyfh-hA
View associatethemehome.php
/** REMOVE THIS BIT OF CODE FOR THE ORIGINAL FEATURED WIDGET AREA */
genesis_register_sidebar( array(
'id' => 'featured',
'name' => __( 'Featured', 'associate' ),
'description' => __( 'This is the featured section.', 'associate' ),
) );
/** END REMOVE */
/** ADD IN THESE NEW WIDGET AREAS */
genesis_register_sidebar( array(
View associatehome.php
// Remove this original bit of code
if ( is_active_sidebar( 'featured' ) ) {
echo '<div class="featured">';
dynamic_sidebar( 'featured' );
echo '</div><!-- end .featured -->';
}
// And add in our new code:
View asssociatestyle.css
/* Home Middle */
.home-middle {
margin: 0 auto;
overflow: hidden;
padding: 0 0 5px;
width: 910px;
}
/* add this next stuff in*/
.home-middle-1 {
View features.css
/* Featured - original code
------------------------------------------------------------ */
.featured {
margin: 0 auto;
height: 430px;
padding: 0 0 25px;
width: 910px;
}
@cdils
cdils / registerwidget.php
Last active Dec 10, 2015
Register a new widget area in a Genesis Framework site.
View registerwidget.php
/** Register widget area */
genesis_register_sidebar( array(
'id' => 'my-widget', // Feel free to use a more meaningful name here
'name' => __( 'My Widget', 'theme-slug' ),
'description' => __( 'This is a description of my new widget area', 'theme-slug' ),
) );