Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: style pack not working with generatepress

@robin-w

Moderator

ok so something like

add_filter ('generate_get_the_title_parameters' , 'rew_community', 10 , 1) ;

function rew_community ($params) {
	if (is_page ('community')) {
		$params = array(
			'before' => sprintf(
				'<h2 class="entry-title"%2$s><a href="%1$s" rel="bookmark">',
				esc_url( get_page_by_title( 'community' ) ) ),
				'microdata' === generate_get_schema_type() ? ' itemprop="headline"' : ''
			),
			'after' => '</a></h2>',
		);
	
	}
return $params ;
}

Put this in your child theme’s function file –

ie wp-content/themes/%your-theme-name%/functions.php

where %your-theme-name% is the name of your theme

or use

Code Snippets

Skip to toolbar