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
function addUploadMimes($mimes) { | |
$mimes = array_merge($mimes, array( | |
'epub|mobi' => 'application/octet-stream' | |
)); | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'addUploadMimes'); |
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 Genesis layouts support to CPT | |
add_post_type_support( 'excerpts', 'genesis-layouts' ); |
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
// Force layout on CPT | |
add_filter('genesis_site_layout', 'ts_CPTNAME_layout'); | |
function ts_CPTNAME_layout($opt) { | |
if ( is_singular( 'excerpts' ) == get_post_type() ) | |
$opt = 'full-width-content'; | |
return $opt; | |
} |
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
function add_excerpts_page_title() { | |
if ( is_post_type_archive( 'excerpts' ) ) | |
echo '<h1 class="entry-headline" itemprop="headline">Excerpts</h1>'; | |
}; | |
add_action('genesis_before_loop', 'add_excerpts_page_title'); |
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
// * Relocate titles on Page, Post and other single pages | |
add_action( 'genesis_after_header','relocate_entry_title_singular' ); | |
function relocate_entry_title_singular() { | |
if ( ! is_page('16') ) | |
return; | |
echo '<div class="entry-header-wrapper"><div class="wrap">'; | |
genesis_do_post_title(); | |
echo '</div></div>'; | |
if ( is_page_template( 'page_blog.php' ) ) | |
return; |
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
function script_managment() { | |
wp_deregister_script( 'jquery' ); | |
wp_deregister_script( 'jquery-ui' ); | |
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' ); | |
wp_register_script( 'jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js' ); | |
wp_enqueue_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', array( 'jquery' ), '4.0', false ); | |
wp_enqueue_script( 'jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js', array( 'jquery' ), '1.8.16' ); | |
} |
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
/* Column Classes | |
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.one-fourth, | |
.one-half, | |
.one-sixth, | |
.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
/* Box Shadow | |
--------------------------------------------- */ | |
.yourclass { | |
-moz-box-shadow: 0 4px 4px rgba(0,0,0,0.2); | |
-webkit-box-shadow: 0 4px 4px rgba(0,0,0,0.2); | |
box-shadow: 0 4px 4px rgba(0,0,0,0.2); | |
} |
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
/* After Page | |
--------------------------------------------- */ | |
.after-page { | |
background-color: #222; | |
border-bottom: 1px solid #222; | |
border-top: 2px solid #222; | |
margin-top: 30px; | |
margin-top: 3rem; | |
padding: 25px 0; |
NewerOlder