Jump to content

Adding widgets to WordPress template


Lotster

Recommended Posts

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!

 

 

post-173432-0-06923900-1415081721_thumb.png

Link to comment
https://forums.phpfreaks.com/topic/292253-adding-widgets-to-wordpress-template/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.