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.

how to change both header.php and custom page

  • Creator
    Topic
  • #7042
    Dawn Shuck
    Participant

    I moved themeblvd_header_menu(); to the top of the page. I have a custom layout homepage that is now showing the header menu in both locations.

    How do I make this change for all custom layout pages as well?

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

    I’m sorry, but I don’t think I quite understand what you’re trying to do exactly and what you’re asking. The header.php is a standard template file that used in all pages of your site, including those with custom layouts.

    I moved themeblvd_header_menu(); to the top of the page.

    What does this mean? Do you have a link to what you’re doing?

    #7046
    Jason Bobich
    Keymaster

    Note that if you’re actually editing header.php, you should avoid this and use the action hook system. You’ll have a lot less problems moving forward with updates to Jump Start.

    http://dev.themeblvd.com/tutorial/actions/

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

    #7049
    Dawn Shuck
    Participant

    Sorry for any confusion. It seems to have resolved itself.
    I emptied the cache before posting my question, so not sure why the delay.

    I’m new at the php side of this so I will definitely read about action hooks.
    Thank you for the links.

    http://www.dawnshuck.com/ajumpstart/

    #7060
    Jason Bobich
    Keymaster

    No worries.

    So, in your scenario, in order to “move” the main menu up to the top where you’re wanting, you’d just do something like this from your Child theme’s functions.php —

    remove_action('themeblvd_header_menu', 'themeblvd_header_menu_default');
    add_action('themeblvd_header_before', 'themeblvd_header_menu_default');

    The framework has a function that displays the menu called themeblvd_header_menu_default and you’re just moving it from the action hook “themeblvd_header_menu” to “themeblv_header_before” as shown on the map:

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.