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: Main Menu as a Vertical Navigation?

#1399
Jason Bobich
Keymaster

Aplogies, I was just sort of quickly responding based on the examples you were asking about. I wasn’t really looking at the actions map very closely, but it’s all there, of course.

http://dev.themeblvd.com/tutorial/primary-framework-action-hooks/

In looking at the Actions Map again, we can see that the “themeblvd_header_content” wraps the area where the logo is. And the area where the menu is the “themeblvd_header_menu”. So we would do this:

remove_action( 'themeblvd_header_content', 'themeblvd_header_content_default' );
remove_action( 'themeblvd_header_menu', 'themeblvd_header_menu_default' );

I also attempted to place the themeblvd_header_logo above the left sidebar by using the following code:
add_action( ‘themeblvd_header_logo’, ‘themeblvd_fixed_sidebar_before_default’ );

You’ve got that sort of reversed. When using the add_action function, the first parameter is the name of the hook, and the second parameter is the name of the function you want to place there.

This is what you’re going for I think:

add_action( 'themeblvd_fixed_sidebar_before', 'themeblvd_header_logo_default' );

“themeblvd_fixed_sidebar_before” is the name of the hook where we want our action to happen. And then our function that we want to happen there is called “themeblvd_header_logo_default”.