Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
reasonstousegenesis / header.php
Created November 19, 2015 03:34
Default content hooked to genesis_site_description
<?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 November 19, 2015 03:32
Add a placeholder description if none is set
<?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 November 19, 2015 03:30
Add the breadcrumb trail after the site description
<?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 November 19, 2015 03:29
Add extra content to the site description area with Genesis
<?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 November 19, 2015 03:26
Default content hooked to genesis_site_title
<?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 November 19, 2015 03:24
Markup positions for the hooks genesis_site_title and genesis_site_description
<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 November 19, 2015 03:18
Add an image before the site title with Genesis
<?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 November 19, 2015 03:17
Add extra content to the site title area with Genesis
<?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 November 19, 2015 02:42
Apply a color style with Genesis
/* 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 November 19, 2015 02:34
Create a recolorable theme with Genesis
<?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(