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
add_action ( 'genesis_before_content','my_category_title' ); | |
function my_category_title() { | |
if ( is_category() ) { | |
$term = get_category(get_query_var('cat'),false); | |
$name = $term->name; | |
echo '<h1 class="entry-title">'. $name .'</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
if ( function_exists('jwplayer_init') ) { | |
echo '<div class="vid">'. jwplayer_tag_callback( $pgmeta['_cwk_paperless_sub'][0] ) .'</div>'; | |
} else { | |
echo '<div class="vid">'. $pgmeta['_cwk_paperless_sub'][0] .'</div>'; | |
} |
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 | |
/** | |
* | |
* Modified page-title.php file for the Minimum child theme. | |
* | |
*/ | |
if ( is_home() ) { | |
echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '<a class="page-title-button" href="#">' . __( 'Subscribe Now', 'minimum' ) . '</a></p></div></div>'; | |
} |
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 | |
/** | |
* Example of adding a div above the header in Genesis | |
* | |
*/ | |
add_action( 'genesis_before_header','my_new_div' ); | |
function my_new_div() { | |
echo '<div class="my-class-name"><p>My new div content.</p></div>'; |
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 page template column to page listing. Make the Template column sortable | |
* http://www.codehooligans.com/2011/07/13/adding-custom-columns-to-wordpress-post-listing/ | |
* http://justintadlock.com/archives/2011/06/27/custom-columns-for-custom-post-types/ | |
* | |
*/ |
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 | |
/** | |
* | |
* Place this in archive.php. It will output the Description of the current-queried taxonomy above the listing of all posts in that taxonomy term. | |
* | |
*/ | |
add_action( 'genesis_before_loop','s25_tax_description' ); | |
function s25_tax_description() { | |
echo '<div class="taxonomy-description">'. term_description() .'</div>'; |
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 | |
/** | |
* Different layouts include: | |
* __genesis_return_content_sidebar | |
* __genesis_return_sidebar_content | |
* __genesis_return_content_sidebar_sidebar | |
* __genesis_return_sidebar_sidebar_content | |
* __genesis_return_sidebar_content_sidebar | |
* __genesis_return_full_width_content |
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 support for Infinite Scroll | |
* container is the element containing your posts | |
* Full list of options at http://jetpack.me/support/infinite-scroll/ | |
* | |
*/ | |
add_theme_support( 'infinite-scroll', array( |
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 | |
/** | |
* | |
* Disable feeds | |
*/ | |
function fb_disable_feed() { | |
wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') ); | |
} |
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 | |
/** | |
* Hide editor on specific pages. | |
* | |
*/ | |
add_action( 'admin_init', 'hide_editor' ); | |
function hide_editor() { | |
// Get the Post ID. |