Forum Replies Created
-
AuthorPosts
-
February 12, 2017 at 11:37 am in reply to: Displaying logo and tagline/description marked with h2 tag in Magazine Pro child #201001
yoyo2008
ParticipantSorry the only thing I cannot figure it is, finally I have to put the two code snippets in functions.php? Like this?
add_filter( 'genesis_seo_title', 'filter_title_with_logo', 10, 3 );
/**
* @author Brad Dalton
* @example http://wpsites.net/web-design/add-logo-above-taglinedescription-in-genesis/
* @copyright 2014 WP Sites
*/
function filter_title_with_logo( $title, $inside, $wrap ) {
$inside = sprintf( '', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
$title = sprintf('<%s class="site-title">%s</%s>', $wrap, $inside, $wrap);
return sprintf( '<%1$s id="title">%2$s</%1$s>', 'h1', $inside );
}add_filter( 'genesis_site_description_wrap', 'description_h2_wrap' );
function description_h2_wrap() {
return 'h2';
}Doing this in my Magazine Pro child theme it now marks h2 the description
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
but it didn't shows it.
February 11, 2017 at 5:28 pm in reply to: Displaying logo and tagline/description marked with h2 tag in Magazine Pro child #200973yoyo2008
ParticipantOh, thank you Victor! Everything's ok.
February 11, 2017 at 9:47 am in reply to: Displaying logo and tagline/description marked with h2 tag in Magazine Pro child #200964yoyo2008
ParticipantThank you very much Victor, I put it at the end of functions.php but a warning came out:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'h2' not found or invalid function name in /var/www/domains/websitename.com/public_html/wp-includes/class-wp-hook.php on line 298 < class="site-description" itemprop="description">This is the tagline
Do I have to inset that code in a particular point?
-
AuthorPosts