Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:48
Edit the output of the footer with Genesis (advanced version)
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the output of the footer with Genesis (advanced version)
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/footer-filter/
*/
add_filter( 'genesis_footer_output', 'rtug_footer_output_advanced' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:48
Add an extra line of text to the footer with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add an extra line of text to the footer with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/footer-filter/
*/
add_filter( 'genesis_footer_output', 'rtug_footer_output' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:47
Edit the output of the footer with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the output of the footer with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/footer-filter/
*/
add_filter( 'genesis_footer_output', 'your_function_here' ); // replace your_function_here with your function
@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:46
Remove the footer text with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Remove the footer text with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-footer-creds-text/
*/
add_filter( 'genesis_footer_creds_text', '__return_false' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:46
Change the text of the footer with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Change the text of the footer with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-footer-creds-text/
*/
add_filter( 'genesis_footer_creds_text', 'rtug_footer_text' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:45
Edit the footer text with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the footer text with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-footer-creds-text/
*/
add_filter( 'genesis_footer_creds_text', 'your_function_here' ); // replace your_function_here with your function
@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:45
Remove the back to top link with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Remove the back to top link with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-footer-backtotop-text/
*/
add_filter( 'genesis_footer_backtotop_text', '__return_false' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:44
Change the text of the back to top link with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Change the text of the back to top link with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-footer-backtotop-text/
*/
add_filter( 'genesis_footer_backtotop_text', 'rtug_back_to_top' );
@reasonstousegenesis
reasonstousegenesis / functions.php
Created November 18, 2015 01:44
Edit the back to top text with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the back to top text with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-footer-backtotop-text/
*/
add_filter( 'genesis_footer_backtotop_text', 'your_function_here' ); // replace your_function_here with your function
@reasonstousegenesis
reasonstousegenesis / page_archive.php
Created November 17, 2015 00:05
Replace the primary sidebar with the archive content with Genesis
<?php
// Template Name: Archive
/**
* Replace the primary sidebar with the archive content with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-page-archive-content/
*/
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );