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! 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 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
Archived
This topic is now archived and is closed to further replies.