Widgets in header
-
Hi,
I have modified the header to include 3 widget areas.
They are displaying vertically.. I could use some help as I would like to have the displayed horizontally.Header now is:
<div id=”page” class=”hfeed site”>
<header id=”masthead” class=”site-header” role=”banner”>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-4’) ) : ?>
<?php endif; ?>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-5’) ) : ?>
<?php endif; ?>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-6’) ) : ?>
<?php endif; ?>
<h1 class=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>Can you let me know what information you would need to help?
-
Hey there DLGN2,
Hope you’re well! 🙂
I don’t know the widgets you put so it would be awesome if you can share a site where it is implemented so I’ll just give you a custom css code. 🙂
Looking forward for your reply! 🙂
Take care,
CalvinHi There,
The site is http://www.itst.nl/jdg (its a test site to avoid messing with the live site)
Regards, David
Please let me know if you need more information..
Hey there
Hope you’re well! 🙂
Yeah, that’s correct always have a staging site and always backup your live site 😀
I suggest you use a child theme http://codex.ww.wp.xz.cn/Child_Themes or use css custom plugin like this: https://ww.wp.xz.cn/plugins/simple-custom-css/ if you will customize your theme.
Add the code in your child theme’s style.css or using the plugin mentioned above.
.header-widget { float: left; padding-right: 20px; }Let me know if it helps! 🙂
Best Regards,
Calvin
The topic ‘Widgets in header’ is closed to new replies.
