srikat icon

Untitled

srikat | PRO | 03/10/18 08:22:15 AM UTC | 0 ⭐ | 477 👁️ | Never ⏰ | []
text |

820 B

|

None

|

0 👍

/

0 👎

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 ) );
 }

Comments