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 mod_deflate.c> | |
# Compress HTML, CSS, JavaScript, Text, XML and fonts | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
AddOutputFilterByType DEFLATE application/x-font | |
AddOutputFilterByType DEFLATE application/x-font-opentype | |
AddOutputFilterByType DEFLATE application/x-font-otf | |
AddOutputFilterByType DEFLATE application/x-font-truetype | |
AddOutputFilterByType DEFLATE application/x-font-ttf |
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 | |
// Do NOT include the opening PHP tag | |
// Add .PHP to page permalinks | |
add_action('init', 'ss_php_pages', -1); | |
function ss_php_pages() { | |
global $wp_rewrite; | |
if ( !strpos($wp_rewrite->get_page_permastruct(), '.php')){ | |
$wp_rewrite->page_structure = $wp_rewrite->page_structure . '.php'; |
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 | |
// Do NOT include the opening PHP tag | |
// Customize the Genesis content limit read more link | |
add_filter( 'get_the_content_more_link', 'sp_read_more_link' ); | |
function sp_read_more_link() { | |
return '<p class="more-link">Continue reading » <a href="' . get_permalink() . '">' . get_the_title() . '</a></p>'; | |
} |
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 | |
// Do NOT include the opening PHP tag | |
// Modify Genesis Next & Previous Page Link Text | |
add_filter( 'genesis_prev_link_text', 'modify_previous_link_text' ); | |
function modify_previous_link_text($text) { | |
$text = '« Newer Entries'; | |
return $text; | |
} | |
/** |
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 | |
// Do NOT include the opening PHP tag | |
// Remove Post Info From Blog Posts Page | |
add_filter( 'genesis_post_info', 'remove_post_info_home_page' ); | |
function remove_post_info_home_page($post_info) { | |
if ( is_home() ) { | |
$post_info = ''; | |
return $post_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
<?php | |
// Do NOT include the opening PHP tag | |
// Remove Post Meta From Blog Posts Page | |
add_filter( 'genesis_post_meta', 'remove_post_meta_home_page' ); | |
function remove_post_meta_home_page($post_meta) { | |
if ( is_home() ) { | |
$post_meta = ''; | |
return $post_meta; | |
}} |
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 | |
// Do NOT add the opening PHP tag | |
// Add custom logo or Enable option in Customizer > Site Identity | |
add_theme_support( 'custom-logo', array( | |
'width' => 244, | |
'height' => 315, | |
'flex-width' => true, | |
'flex-height' => true, | |
'header-text' => array( '.site-title', '.site-description' ), |
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
/* | |
* Custom Logo Sytle | |
*/ | |
.wp-custom-logo .site-title { | |
position: absolute!important; | |
clip: rect(0,0,0,0); | |
height: 0; | |
width: 0; | |
border: 0; |
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 | |
// Do NOT include the opening PHP tag | |
/* | |
* Remove title/logo metabox from Genesis customizer | |
* See https://developer.wordpress.org/themes/advanced-topics/customizer-api/ | |
*/ | |
add_action( 'customize_register', 'es_theme_customize_register', 99 ); // Priority had to be last for this to work | |
function es_theme_customize_register( $wp_customize ) { | |
$wp_customize->remove_control('blog_title'); |
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 | |
// Do NOT include the opening PHP tag | |
/* Remove title/logo metabox from Genesis theme options page | |
* See http://www.billerickson.net/code/remove-metaboxes-from-genesis-theme-settings/ | |
* Updated to use $_genesis_admin_settings instead of legacy variable in Bill's example. | |
*/ | |
add_action( 'genesis_theme_settings_metaboxes', 'be_remove_metaboxes' ); | |
function be_remove_metaboxes( $_genesis_admin_settings ) { | |
remove_meta_box( 'genesis-theme-settings-header', $_genesis_admin_settings, 'main' ); |