Lotster Posted November 4, 2014 Share Posted November 4, 2014 Good morning I'm trying to add a widget to a WordPress template using PHP. It works, but the problem is that the widget ends up on a new line in the header instead of next to the logo as I want it. The code looks like this: <div class="branding_wrap"> <?php pagelines_main_logo(); ?> <?php pagelines_register_hook( 'pagelines_before_branding_icons', 'branding' ); // Hook ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('header-1') ) : ?> <?php endif; ?> I've attached a screenshot of the current header to this post. Can anyone tell me what I'm doing wrong? I'm pretty new at PHP. Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/292253-adding-widgets-to-wordpress-template/ Share on other sites More sharing options...
QuickOldCar Posted November 4, 2014 Share Posted November 4, 2014 You either want to use the span tag or do additional css for it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span Quote Link to comment https://forums.phpfreaks.com/topic/292253-adding-widgets-to-wordpress-template/#findComment-1495662 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.