This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Add slider | |
------------------------------------------------------------ */ | |
add_action('genesis_after_header', 'jm_home_slider'); | |
function jm_home_slider() { | |
echo '<div id="featured-slider">'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Template Name: Portfolio */ | |
/** | |
* Portfolio Listing | |
* | |
*/ | |
function be_portfolio_listing() { | |
$args = array( | |
'post_type' => 'portfolio', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add markup for homepage portfolio | |
add_action( 'genesis_after_header', 'minimum_home_portfolio', 20 ); | |
function minimum_home_portfolio() { | |
printf( '<div %s>', genesis_attr( 'home-portfolio' ) ); | |
genesis_structural_wrap( 'home-portfolio' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('genesis_after_header','portfolio_title'); | |
function portfolio_title() { ?> | |
<div class="portfolio-title"> | |
<div class="wrap"> | |
<h1 class="entry-title" itemprop="headline"> | |
<span class="portfolio-headline">Portfolio » </span> | |
<?php the_title(); ?> | |
</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
remove_action('genesis_loop', 'genesis_do_loop'); | |
add_action('genesis_loop', 'custom_do_loop'); | |
function custom_do_loop() { | |
global $paged; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Reposition the primary navigation menu | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
add_action( 'genesis_after_header', 'genesis_do_nav', 15 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* don't copy php tag above | |
//* add following code to functions.php: | |
//* Load backstretch js | |
/** Add metabox for backstretch default/fallback background image */ | |
add_action( 'genesis_theme_settings_metaboxes', 'themename_theme_settings_metaboxes', 10, 1 ); | |
function themename_theme_settings_metaboxes( $pagehook ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mp_remove_body_classes($classes, $class){ | |
foreach($classes as &$str){ | |
if(strpos($str, "YOUR_CLASS_HERE") > -1){ | |
$str = ""; | |
} | |
} | |
return $classes; | |
} | |
add_filter("body_class", "mp_remove_body_classes", 10, 2); |
OlderNewer