Logo and site title on same row
-
I am using the code below to display both the site logo and title.
add_action( ‘__after_logo’ , ‘display_my_site_title’);
function display_my_site_title() {
//first checks if there is a logo uploaded
$logo_src = esc_url ( tc__f( ‘__get_option’ , ‘tc_logo_upload’) ) ;
if ( empty($logo_src) )
return;//then print the site title after
printf(‘<h1 class=”my_site_title”>%4$s</h1>’,
esc_url( home_url( ‘/’ ) ),
esc_attr( get_bloginfo( ‘name’) ),
esc_attr( get_bloginfo( ‘description’ ) ),
esc_attr( get_bloginfo( ‘name’) )
);
}The problem is that they are verticaly aligned not horizontaly. I have searched and searched to get an example of how to get them on the same row but without any luck!
How can this be done?
/Erik
- The topic ‘Logo and site title on same row’ is closed to new replies.