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 | |
/** | |
* Below you will find all of the custom content used to | |
* create the demo site for the Dynamik Impress Skin. | |
*/ | |
?> | |
WordPress Menu Setup: Assign a menu to the "Primary Navigation Menu" as well as the Genesis "Header Right" Widget Area as stated below. | |
== BEGIN Widget Area Info == |
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
add_action( 'get_header', 'custom_child_full_width_singular_layout'); | |
// Force full-width-content layout on single pages and posts, but not "blog" page. | |
function custom_child_full_width_singular_layout() { | |
if ( ( is_page() || is_single() ) && ! is_page( 'blog' ) ) | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
} |
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
if ( ! function_exists( 'exif_imagetype' ) ) { | |
function exif_imagetype( $filename ) { | |
if ( ( list( $width, $height, $type, $attr ) = getimagesize( $filename ) ) !== false ) | |
return $type; | |
return false; | |
} |
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
<IfModule mpm_winnt_module> | |
ThreadStackSize 8388608 | |
</IfModule> |
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
if ( function_exists( 'themer_pro_admin_bar_add_node') ) | |
themer_pro_admin_bar_add_node( $file = 'page-builder.php', $subdir = '', $fullscreen = false ); |
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
add_action( 'theme_before_content', 'my_banner_ad' ); | |
/* | |
* This conditional example ensures that the banner ad only | |
* displays on the front page by returning nothing if it | |
* is NOT the front page. | |
*/ | |
function my_banner_ad() { | |
if ( ! is_front_page() ) | |
return; |
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
/* | |
* This is the cleanest way to do this, using an anonymous function, | |
* but such a function requires PHP 5.3 or higher. | |
*/ | |
add_filter( 'theme_read_more_text', function() { return 'Read more ->'; } ); | |
/* | |
* This is the same anonymous function example, | |
* but formatted differently for those who might | |
* the first example a bit confusing. |