Change position of logo next to title
-
Hey there,
I am almost done with my very first website using the sydney child theme and I am a little proud right now ?? You did a great job creating such a beautiful theme!!
I have the following question: with the help of member awanrmb in an earlier post I managed to add a logo to the frontpage without removing the page title instead! Heres the code I changed the header.php into:
<header id="masthead" class="site-header" role="banner"> <div class="header-wrap"> <div class="container"> <div class="row"> <div class="col-md-4 col-sm-8 col-xs-12 text-center"> <a>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a> <h1 class="site-title"><a>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <?php if ( get_theme_mod('site_logo') ) : ?> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> <?php endif; ?> </div> <div class="col-md-8 col-sm-4 col-xs-12"> <div class="btn-menu"></div> <nav id="mainnav" class="mainnav" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'sydney_menu_fallback' ) ); ?> </nav><!-- #site-navigation --> </div> </div> </div> </div> </header>
Now there is just one thing left I would still like to change: The logo already sits in the right position but title and subtitle are sitting beneath of it now. I’d like both to be aligned (logo left, title and subtitle right (> subtitle should still sit below the title)).
I already tried different things but I am not familiar enough yet with the codes…. Any advice on how I can arrange that?
Thanks a lot in advance!
Here’s a link for you to have a look:
https://www.naturheilpraxis-andrea-nawka.de
- The topic ‘Change position of logo next to title’ is closed to new replies.