Skip to content

Instantly share code, notes, and snippets.

View RhythmShahriar's full-sized avatar
🎯
Focusing

Rhythm Shahriar RhythmShahriar

🎯
Focusing
View GitHub Profile
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/** Modify trackbacks header text in comments */
add_filter( 'genesis_title_pings', 'custom_title_pings' );
function custom_title_pings() {
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/** Modify comments header text in comments */
add_filter( 'genesis_title_comments', 'custom_genesis_title_comments' );
function custom_genesis_title_comments() {
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/** Modify the speak your mind text */
add_filter( 'genesis_comment_form_args', 'custom_comment_form_args' );
function custom_comment_form_args($args) {
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/** Modify the author says text */
add_filter( 'comment_author_says_text', 'custom_comment_author_says_text' );
function custom_comment_author_says_text() {
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/** Customize the comment submit button text */
add_filter( 'genesis_comment_form_args', 'custom_comment_submit_button' );
function custom_comment_submit_button( $args ) {
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/** Add a comment policy box */
add_action( 'genesis_after_comments', 'single_post_comment_policy' );
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/**Customize The Comment Form in Genesis 2.0 Html5*/
add_filter( 'comment_form_defaults', 'rhythm_custom_comment_form' );
function rhythm_custom_comment_form($fields) {
<?php
/**-------------------------------------------
* @package WordPress Default Avatar
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
// Create a custom Gravatar
function rhythm_default_avatar( $avatars ) {
$new = get_stylesheet_directory_uri() . '/images/rhythm-custom-avatar.png'; //Image location, it's in your stylesheet images directory
<?php
/**-------------------------------------------
* @package WordPress Default Avatar
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
//**Custom Gravatar for Custom Themes**/
add_filter( 'avatar_defaults', 'rhythm_custom_gravatar' );
function rhythm_custom_gravatar ($avatar_defaults) {