Forum Replies Created
-
AuthorPosts
-
verykindheartMember
Thanks for your quick response. I've just found a solution that worked, which I share below.
.site-header {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 100;
}verykindheartMemberBrad that's beautiful! That's so much more succinct and there's no need to hard code the URL. Thanks very much!! You're a legend.
verykindheartMemberThanks a lot Brad. Got it to work perfectly.
For anyone else interested, I've posted the code below.
function child_header_title( $title, $inside, $wrap ) {
if (current_user_can('subscriber')){
$inside = sprintf( '%s', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
} elseif (current_user_can('contributor')){
$inside = sprintf( '%s', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
}
return sprintf( '<%1$s class="site-title">%2$s</%1$s>', $wrap, $inside );
}
add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );verykindheartMemberWow, thanks for the extra information Brad. That helps a lot. I will try and get that working now. Thanks heaps.
verykindheartMemberThanks for your very quick response Brad. The code is a bit complex for me, but I will have a go at applying the conditional. Thanks for pointing me in the right direction though. Really appreciate it.
-
AuthorPosts