Skip to content

Instantly share code, notes, and snippets.

@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:12
Customize comment respond title with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Customize comment respond title.
add_filter( 'comment_form_defaults', 'athk_comment_respond_title' );
function athk_comment_respond_title( $defaults ) {
$defaults['title_reply'] = __( 'Respond', 'bg' );
return $defaults;
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:13
Customize submit button text in entry comments with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Customize submit button text in entry comments.
add_filter( 'comment_form_defaults', 'athk_comment_submit_button' );
function athk_comment_submit_button( $defaults ) {
$defaults['label_submit'] = __( 'Submit Comment', 'theme-name' );
return $defaults;
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:14
Customize entry comments Gravatar size with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Customize Gravatar size in entry comments.
add_filter( 'genesis_comment_list_args', 'athk_comments_gravatar' );
function athk_comments_gravatar( $args ) {
$args['avatar_size'] = 96;
return $args;
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:15
Customize input box text in search form with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Customize search form input box text.
add_filter( 'genesis_search_text', 'athk_search_input_text' );
function athk_search_input_text( $text ) {
return esc_attr( 'Search my website...' );
}
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:17
Customize label text in search form with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Customize search form label.
add_filter( 'genesis_search_form_label', 'athk_search_form_label' );
function athk_search_form_label ( $text ) {
return esc_attr( 'Search Form' );
}
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:18
Customize submit button text in search form with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Customize search form input button text.
add_filter( 'genesis_search_button_text', 'athk_search_form_button_text' );
function athk_search_form_button_text( $text ) {
return esc_attr( 'Search' );
}
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:23
Remove site description in site header with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Remove site description.
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:25
Remove site title in site header with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Remove site title.
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 02:26
Remove widget area in site header with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Remove header right widget area.
unregister_sidebar( 'header-right' );
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 13:31
Customize entry meta in entry header with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Customize entry meta in entry header.
add_filter( 'genesis_post_info', 'athk_entry_meta_header' );
function athk_entry_meta_header($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;