Custom Widget Area in the header
-
Hello!
I’m new with php and I need some help. I’ve created a new widget in the header of my pure-simple child theme. To do this I’ve inserted in the header this:<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(“My Widget”) ) : ?>
<?php endif;?>And in the function:
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘My Widget’,
‘before_widget’ => ‘<div class = “My Widget”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
)
);
?>
The new widget is created and I can find it in the back-end of my website.
In this widget I have put my polylang’s flags, but it has created an empty section in the header (I would like to have it at the right side with vertical alignment), in this empty section all flags work correctly, but if I try to move it through CSS only italian language is available, the other flags collapse their link… What can I do? Please and Thanks!
PaolaThe page I need help with: [log in to see the link]
- The topic ‘Custom Widget Area in the header’ is closed to new replies.