Jump to content

Adding widgets to WordPress template


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!




Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.