Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- remove_action( 'genesis_archive_title_descriptions', 'genesis_do_archive_headings_headline', 10, 3 );
- add_action( 'genesis_archive_title_descriptions', 'custom_do_archive_headings_headline', 10, 3 );
- /**
- * Add headline for archive headings to archive pages.
- *
- * @since 2.5.0
- *
- * @param string $heading Optional. Archive heading, default is empty string.
- * @param string $intro_text Optional. Archive intro text, default is empty string.
- * @param string $context Optional. Archive context, default is empty string.
- */
- function custom_do_archive_headings_headline( $heading, $intro_text, $context ) {
- if ( 'posts-page-description' === $context ) {
- $heading = 'Our Blog'; // set your desired Posts page title here.
- }
- printf( '<h1 %s>%s</h1>', genesis_attr( 'archive-title' ), strip_tags( $heading ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement