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 | |
/** | |
* Customs RSS feed with related posts. | |
* | |
* Place this file in your theme's directory. | |
* | |
* @package sometheme | |
* @subpackage theme | |
*/ |
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
// From http://wpsites.net/web-design/modify-text-before-after-comment-form/ | |
function wpsites_change_note_after_comment_form($arg) { | |
$arg['comment_notes_after'] = '<p class="comment-notes">' . __( 'Thanks for leaving an awesome comment!' ) . '</p>'; | |
return $arg; | |
} | |
add_filter('comment_form_defaults', 'wpsites_change_note_after_comment_form'); | |
function wpsites_modify_text_before_comment_form($arg) { | |
$arg['comment_notes_before'] = '<p class="comment-notes">' . __( 'We respect your privacy and will not publish your personal details.' ) . '</p>'; |
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
// http://crunchify.com/wordpress-tips-quick-way-to-remove-url-field-from-comment-form/ | |
function crunchify_disable_comment_url($fields) { | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields','crunchify_disable_comment_url'); |
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
// https://scotch.io/quick-tips/removing-wordpress-header-junk | |
// ========================================================================= | |
// REMOVE JUNK FROM HEAD | |
// ========================================================================= | |
remove_action('wp_head', 'rsd_link'); // remove really simple discovery link | |
remove_action('wp_head', 'wp_generator'); // remove wordpress version | |
remove_action('wp_head', 'feed_links', 2); // remove rss feed links (make sure you add them in yourself if youre using feedblitz or an rss service) | |
remove_action('wp_head', 'feed_links_extra', 3); // removes all extra rss feed links |
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
// http://justintadlock.com/archives/2014/11/03/loading-parent-styles-for-child-themes | |
add_action( 'wp_enqueue_scripts', 'my_enqueue_styles' ); | |
function my_enqueue_styles() { | |
/* If using a child theme, auto-load the parent theme style. */ | |
if ( is_child_theme() ) { | |
wp_enqueue_style( 'parent-style', trailingslashit( get_template_directory_uri() ) . 'style.css' ); | |
} |
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
// http://tinyurl.com/p4fddly | |
//***Customize The Comment Form**/ | |
add_filter( 'comment_form_defaults', 'bourncreative_custom_comment_form' ); | |
function bourncreative_custom_comment_form($fields) { | |
$fields['comment_notes_before'] = ''; //Removes Email Privacy Notice | |
$fields['title_reply'] = __( 'Share Your Comments & Feedback:', 'customtheme' ); //Changes The Form Headline | |
$fields['label_submit'] = __( 'Share My Comment', 'customtheme' ); //Changes The Submit Button Text | |
$fields['comment_notes_after'] = ''; //Removes Form Allowed Tags Box | |
return $fields; | |
} |
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_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'] ); | |
NewerOlder