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: Adding a Widget to Header Right


I am getting close! The piece I am missing is assigning a div id to the new “header above” widget.
I can see both widgets

If I use: #branding .widget-area .header-above{…
nothing changes

If I use #branding .widget-area…
both widgets are formatted the same

In firebug I do see the div id for my_header_widget area but not for my_header_above and yet I ddn’t put it there wiath a in functions .php. I did add a dive for the header-above widget – but is does not show up 🙁

I’m wondering if I missed something – both widgets are in my_header_content – just two different spots within it. Should the functions be grouped together or in separate sections?

This is my functions php:

* My header content
function my_header_content() {
	themeblvd_display_sidebar( 'my_header_widget_area' );
remove_all_actions( 'themeblvd_header_addon' );
add_action( 'themeblvd_header_addon', 'my_header_content' );
 * Add new sidebar location. Header above 
themeblvd_add_sidebar_location( 'my_header_above_widget_area', 'My Header Above', 'collapsible' );

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

this is what firebug shows:

[raw]Login, Logout, Facebook, Twitter, Linked In[/raw]

#branding .widget-area .header-above{
    float: right;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    color: #ffffff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 100%;
    margin: 0px 0px 0px 0px;
background: #bbbbbb;