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
# Bot Blocker | |
<IfModule mod_setenvif.c> | |
SetEnvIfNoCase User-Agent ^$ keep_out | |
SetEnvIfNoCase User-Agent (pycurl|casper|cmsworldmap|diavol|dotbot) keep_out | |
SetEnvIfNoCase User-Agent (flicky|ia_archiver|jakarta|kmccrew) keep_out | |
SetEnvIfNoCase User-Agent (purebot|comodo|feedfinder|planetwork) keep_out | |
<Limit GET POST PUT> | |
Order Allow,Deny | |
Allow from all | |
Deny from env=keep_out |
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
/* functions.php */ | |
require_once(CHILD_DIR.'/lib/custom-header.php'); | |
/* Create custom-header.php file */ | |
<?php | |
if(genesis_get_option('header_custom') == 1) { | |
define('HEADER_TEXTCOLOR', ''); |
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
/** Autobahn theme activation welcome message */ | |
add_action( 'admin_notices', 'autobahn_child_theme_welcome', 11 ); | |
function autobahn_child_theme_welcome() { | |
global $pagenow; | |
if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) { | |
$settings = sprintf( __( '<strong>Congratulations!</strong> You have successfully activated the <em>Autobahn</em> Child theme for Genesis. You should get started by configuring your settings via the regular <a href="%s" title="Genesis Framework Settings">Genesis Framework Settings page</a>. — Thank you for using this theme! I wish you a good -online- journey! <em>—David Decker, Autobahn theme developer :)</em>', 'autobahn' ) , admin_url( 'admin.php?page=genesis' ) ); | |
$output = printf( '<div class="updated"><p>%1$s</p></div>', $settings ); | |
} | |
} |
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
/* functions.php */ | |
/** Add support for custom header */ | |
add_theme_support( 'genesis-custom-header', array( 'width' => 470, 'height' => 100, 'textcolor' => '444', 'admin_header_callback' => 'minimum_admin_style' ) ); | |
/** | |
* Register a custom admin callback to display the custom header preview with the | |
* same style as is shown on the front end. | |
* |
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
//Source: http://jeffsebring.com/responsive-wordpress-images/ | |
.entry-content img, .comment-content img, .widget img { | |
max-width: 97.5%; | |
} | |
img[class*="align"], img[class*="wp-image-"] { | |
height: auto; | |
} |
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: Home | |
*/ | |
//Add Post Class Filter | |
add_filter('post_class', 'sf_post_class'); | |
function sf_post_class($classes) { | |
global $loop_counter; | |
$classes[] = 'one-third'; |
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
/** | |
* Shadow on Top of Image | |
* @author: Affan Ruslan | |
* @link: Affanruslan.com | |
* Use shadow box for the primary (top) menu. | |
* Use inset shadow for the secondary (bottom) menu. | |
* Preview http://imgur.com/QTKNO | |
*/ | |
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
//Source: http://www.billerickson.net/customize-the-wordpress-query/#example-category | |
<?php | |
/** | |
* Exclude Post Formats from Blog | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @param object $query data | |
* |
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
// Source: http://yoast.com/custom-post-type-snippets/ | |
// Add a Custom Post Type to a feed | |
function add_cpt_to_feed( $qv ) { | |
if ( isset($qv['feed']) && !isset($qv['post_type']) ) | |
$qv['post_type'] = array('post', '<CPT>'); | |
return $qv; | |
} | |
add_filter( 'request', 'add_cpt_to_feed' ); |
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
// Source: http://genesissnippets.com/custom-comments-html-output-with-genesis-framework/ | |
// First remove the genesis_default_list_comments function | |
remove_action( 'genesis_list_comments', 'genesis_default_list_comments' ); | |
// Now add our own and specify our custom callback | |
add_action( 'genesis_list_comments', 'child_default_list_comments' ); | |
function child_default_list_comments() { | |
$args = array( |
OlderNewer