This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: styling new widget areas in header

Jason Bobich

You’re putting that code in your header.php? No, this should be going in your Child theme’s functions.php. If you have that code in your header.php, definitely remove it. Do not do anything in header.php.

Header logo has a unique id () which makes it easy to style
How do I give each of my new Widgets a unique ID?

Are we talking about individual widgets or the widget areas? If you’re talking about individual widgets, then you can see that WordPress already gives each one a unique ID.

And if you’re talking about the widget areas, haven’t we covered this already several times? Go back and read through our previous thread. We’ve covered both how to target the widget areas with CSS the way they are.

And we’ve also covered how to wrap the widget aras in your own markup. Just look at the code you’re posting above. You’re echo’ing out blank nothing’s before and after your widget area. Once again, if you want some sort of div around it, then do that.

 * My header above
function my_header_above() {
	echo '
'; themeblvd_display_sidebar( 'my_header_above_widget_area' ); echo '
'; } add_action( 'themeblvd_header_above', 'my_header_above' );