Skip to content

Instantly share code, notes, and snippets.

@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 13:33
Remove post format image in entry header with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Remove post format image in entry header.
remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 );
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 13:32
Remove entry title in entry header with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Remove entry title in entry header.
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
@authentikHQ
authentikHQ / functions.php
Created October 29, 2018 13:32
Remove entry meta in entry header with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Remove entry meta in entry header.
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
@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;
@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 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: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: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: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: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...' );
}