Skip to content

Instantly share code, notes, and snippets.

View csbeck's full-sized avatar

Chris Becker csbeck

View GitHub Profile
@csbeck
csbeck / blog_page
Created January 7, 2014 23:07
Show content above Blog list page - WordPress + StudioPress
<?php
//* Show page content above posts
add_action( 'genesis_loop', 'genesis_standard_loop', 5 );
genesis();
@csbeck
csbeck / wp_genesis_custom_submenus
Created July 8, 2014 18:06
Genesis Custom Submenus (tabs)
/**
* Submenu customizations (tabs)
* Created by Becker Design Studio
* http://www.beckerstudio.com
**/
remove_action('genesis_after_header', 'genesis_do_subnav');
add_action('genesis_before_post_content','my_custom_subnav');
function my_custom_subnav () {
/* use if and else if statements to determine what page we're on to know what submenu to show */
if ( is_page(46) || is_page(185) || is_page(191) || is_page(196) ) {