Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
reasonstousegenesis / functions.php
Created October 16, 2015 04:59
Remove the loop with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Remove the loop with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-do-loop/
*/
remove_action( 'genesis_loop', 'genesis_do_loop' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created October 13, 2015 21:32
Edit the author box title with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the author box title with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/author-box-title/
*/
add_filter( 'genesis_author_box_title', 'rtug_author_box_title' );
@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