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 custom body class | |
add_filter( 'body_class', 'amn_add_body_class' ); | |
function amn_add_body_class( $classes ) { | |
$classes[] = 'my-custom-body-class'; | |
return $classes; | |
} |
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 | |
//* Remove the Header | |
remove_action( 'genesis_header', 'genesis_do_header' ); | |
//* Remove the site title | |
remove_action( 'genesis_site_title', 'genesis_seo_site_title' ); | |
//* Remove the site description | |
remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); | |
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 | |
//* Remove Title & Description | |
remove_action( 'genesis_site_title', 'genesis_seo_site_title' ); | |
remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); |
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 | |
//* Remove primary nav menu | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
//* Remove secondary nav menu | |
remove_action( 'genesis_after_header', 'genesis_do_subnav' ); |
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 | |
//* Move primary navigation menu | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
add_action( 'genesis_before_header', 'genesis_do_nav' ); | |
//* Move secondary navigation menu | |
remove_action( 'genesis_after_header', 'genesis_do_subnav' ); | |
add_action( 'genesis_before_header', 'genesis_do_subnav' ); |
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 | |
//* Remove Breadcrumbs | |
remove_action('genesis_before_loop', 'genesis_do_breadcrumbs'); |
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 Viewport meta tag for mobile browsers | |
add_action( 'genesis_meta', 'amn_viewport_meta_tag' ); | |
function amn_viewport_meta_tag() { | |
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>'; | |
} |
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 custom image sizes to WordPress | |
add_image_size( 'featured', 690, 180, TRUE ); | |
add_image_size( 'full_width', 960); | |
add_image_size( 'grid', 300, 150, TRUE ); | |
add_image_size( 'small_thumbnail', 100, 100, TRUE ); | |
add_image_size( 'micro_thumbnail', 75, 75, TRUE ); | |
//* Make custom sizes available within the WordPress Media Library Attachment Display Settings | |
add_filter( 'image_size_names_choose', 'amn_image_sizes_choose' ); |
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 excerpts post type support for pages | |
add_action('init', 'amn_page_excerpts'); | |
function amn_page_excerpts() { | |
add_post_type_support( 'page', 'excerpt'); | |
} |
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 | |
//* Remove default Genesis "G" favicon | |
remove_action('genesis_meta', 'genesis_load_favicon'); // Genesis 1.9 | |
remove_action('wp_head', 'genesis_load_favicon'); // Genesis 2.0 |
OlderNewer