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.

Move footer menu above footer columns

  • Creator
    Topic
  • #1082
    gregfields
    Participant

    How do I move the Footer menu from below the copyright to above the Footer columns?

    Many thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #1097
    Jason Bobich
    Keymaster

    Checkout this page of the developer docs: http://dev.themeblvd.com/tutorial/primary-framework-action-hooks/

    The hook you want to look at is “themeblvd_footer_sub_content” which has a default function called themeblvd_footer_sub_content_default containing the footer menu.

    #11584
    John
    Participant

    I can’t get the footer menu to display at all. tried:
    add_action(‘themeblvd_footer_content’, ‘themeblvd_footer_below_default’);
    add_action(‘themeblvd_footer_content’, ‘themeblvd_footer_content_default’);
    add_action(‘themeblvd_footer_content’, ‘themeblvd_footer_sub_content_default’);

    #11591
    Jason Bobich
    Keymaster

    The function that displays the footer menu is called “themeblvd_footer_sub_content_default”. So this will be your callback function that you want to hook to the appropriate action where you want it to show.

    The first parameter passed into add_action() is the name of the action hook and the second parameter is the callback function.

    The footer columns are currently hooked to the action “themeblvd_footer_content”. Checkout the actions map again, and see what hook comes just before “themeblvd_footer_content”, and use that as what you’re hooking to.

    // Remove footer copyright/menu from below
    remove_action( 'themeblvd_footer_sub_content', 'themeblvd_footer_sub_content_default' );
    
    // Add footer copyright/menu at top of footer area
    add_action( 'themeblvd_footer_above', 'themeblvd_footer_sub_content_default' );

    This would technically work, too, if you passed in a priority less than default 10.

    // Remove footer copyright/menu from below
    remove_action( 'themeblvd_footer_sub_content', 'themeblvd_footer_sub_content_default' );
    
    // Add footer copyright/menu to footer content with earlier priority than columns
    add_action( 'themeblvd_footer_content', 'themeblvd_footer_sub_content_default', 9 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.