This file contains 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
//* Make Font Awesome available | |
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); | |
function enqueue_font_awesome() { | |
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' ); | |
} | |
//* Customize search form input button text | |
add_filter( 'genesis_search_button_text', 'sk_search_button_text' ); |
This file contains 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 one or more classes to the Genesis search form's 'Submit' button | |
* @author Alain Schlesser (alain.schlesser@gmail.com) | |
* @link http://www.brightnucleus.com/add-class-wordpress-search-button/ | |
* | |
* @param string $form the search form HTML output | |
* @param string $search_text text inside the search text entry box | |
* @param string $button_text caption of the search button |
This file contains 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 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 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 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 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 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 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 ) { |
OlderNewer