Created
June 26, 2014 14:42
-
-
Save anonymous/02fc92d2ddb50450e342 to your computer and use it in GitHub Desktop.
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 | |
// Start the engine the other way | |
add_action(‘genesis_setup’,’genesischild_theme_setup’, 15); | |
function genesischild_theme_setup() { | |
//Add support for HTML5 markup | |
add_theme_support( ‘html5′ ); | |
//Add viewport metatag | |
add_theme_support( ‘genesis-responsive-viewport’ ); | |
//Add 3 footer widgets | |
add_theme_support( ‘genesis-footer-widgets’, 3 ); | |
//* Customize the entire footer | |
remove_action( ‘genesis_footer’, ‘genesis_do_footer’ ); | |
add_action( ‘genesis_footer’, ‘sp_custom_footer’ ); | |
function sp_custom_footer() { | |
?> | |
<br/><p align=”center” style=”font-size: 17px;”>© Copyright 2014. Site By Lyndsay Moon</p> | |
<?php | |
} | |
//* Remove comment form allowed tags | |
add_filter( ‘comment_form_defaults’, ‘sp_remove_comment_form_allowed_tags’ ); | |
function sp_remove_comment_form_allowed_tags( $defaults ) { | |
$defaults['comment_notes_after'] = ”; | |
return $defaults; | |
} | |
add_filter( ‘genesis_comment_form_args’, ‘url_filtered’ ); | |
add_filter( ‘comment_form_default_fields’, ‘url_filtered’ ); | |
function url_filtered( $fields ) { | |
if ( isset( $fields['url'] ) ) | |
unset( $fields['url'] ); | |
if ( isset( $fields['fields']['url'] ) ) | |
unset( $fields['fields']['url'] ); | |
return $fields; | |
} | |
//* Modify comments title text in comments | |
add_filter( ‘genesis_title_comments’, ‘sp_genesis_title_comments’ ); | |
function sp_genesis_title_comments() { | |
$title = ‘<h3>Your Story</h3>’; | |
return $title; | |
} | |
//* Reposition the primary navigation menu | |
remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ ); | |
add_action( ‘genesis_before_header’, ‘genesis_do_nav’ ); | |
} | |
add_action( ‘get_header’, ‘remove_page_title’ ); | |
function remove_page_title() { | |
if ( is_page( 5 ) ) { | |
remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ ); | |
} | |
} | |
add_filter(‘comment_form_field_email’, ‘__return_false’); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment