Instantly share code, notes, and snippets.

Reasons to Use Genesis reasonstousegenesis

View GitHub Profile
@reasonstousegenesis
reasonstousegenesis / header.php
Created Nov 19, 2015
Default content hooked to genesis_site_description
View header.php
<?php
// Default content hooked to genesis_site_description
// lib/structure/header.php
add_action( 'genesis_site_description', 'genesis_seo_site_description' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created Nov 19, 2015
Add a placeholder description if none is set
View functions.php
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add a placeholder description if none is set
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/site-description/
*/
add_action( 'genesis_site_description', 'rtug_placeholder_description' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created Nov 19, 2015
Add the breadcrumb trail after the site description
View functions.php
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add the breadcrumb trail after the site description
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/site-description/
*/
add_action( 'genesis_site_description', 'genesis_do_breadcrumbs' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created Nov 19, 2015
Add extra content to the site description area with Genesis
View functions.php
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add extra content to the site description area with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/site-description/
*/
add_action( 'genesis_site_description', 'your_function_here' ); // replace your_function_here with your function
@reasonstousegenesis
reasonstousegenesis / header.php
Created Nov 19, 2015
Default content hooked to genesis_site_title
View header.php
<?php
// Default content hooked to genesis_site_title
// lib/structure/header.php
add_action( 'genesis_site_title', 'genesis_seo_site_title' );
@reasonstousegenesis
reasonstousegenesis / index.php
Created Nov 19, 2015
Markup positions for the hooks genesis_site_title and genesis_site_description
View index.php
<header class="site-header">
<div class="wrap">
<div class="title-area">
<!-- genesis_site_title 0–9 -->
<p class="site-title"></p>
<!-- genesis_site_title 10+ -->
<!-- genesis_site_description 0–9 -->
<p class="site-description"></p>
<!-- genesis_site_description 10+ -->
</div>
@reasonstousegenesis
reasonstousegenesis / functions.php
Created Nov 19, 2015
Add an image before the site title with Genesis
View functions.php
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add an image before the site title with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/site-title/
*/
add_action( 'genesis_site_title', 'rtug_title_image' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created Nov 19, 2015
Add extra content to the site title area with Genesis
View functions.php
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add extra content to the site title area with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/site-title/
*/
add_action( 'genesis_site_title', 'your_function_here' ); // replace your_function_here with your function
@reasonstousegenesis
reasonstousegenesis / style.css
Created Nov 19, 2015
Apply a color style with Genesis
View style.css
/* Paste the code BELOW this line into your child theme stylesheet. */
.your-theme-blue a {
color: #2F82F7;
}
.your-theme-orange a {
color: #E54D24;
}
@reasonstousegenesis
reasonstousegenesis / functions.php
Created Nov 19, 2015
Create a recolorable theme with Genesis
View functions.php
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Create a recolorable theme with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-style-selector/
*/
add_theme_support( 'genesis-style-selector', array(