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: New Widget Area

#798
karlo
Participant

If in a hurry and cant wait just copy and paste from docs http://dev.themeblvd.com/tutorial/addremove-widget-area-location/. I did a “header-right” yesterday, works. Need some naming scheme that make sense to you plus lookup of hooks but real easy. Also a bit of difference between collapsible and static or what the opposite of collapsible is 🙂

/* http://dev.themeblvd.com/tutorial/addremove-widget-area-location/ */
themeblvd_add_sidebar_location( 'header_widget', 'Header Right', 'collapsible', 'Widget for header' );
add_action( 'themeblvd_header_addon', 'display_header_widget' );
function display_header_widget() {
	echo '';
	themeblvd_display_sidebar( 'header_widget' );
	echo '';
}

I should change mine as I actually put 2 widgets in there where 1 is at the far left, 1left-logo/title-1right setup but then again hook seems to be at the right. Can make you think, heh. If you add a bunch it is nice names make sense.

  • This reply was modified 7 years, 10 months ago by karlo.