THEMEHALL
  • Omega
  • Cart
  • Support
  • My Account

Church theme with secondary menu bar

Home › Forums › Omega Child › Church theme with secondary menu bar

Tagged: church menu

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 3 months ago by han.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 16, 2015 at 9:39 am #2957
    elvi
    Participant

    Hello,

    I would like to add a secondary menu bar in Church theme. I had some troubles with functions.php, but now it seems to work fine. My question is, is this the proper way to do it? Or am I missing something? I’m relatively new to wordpress themes.

    So here are the lines I added to my functions.php:

    function church_setup() {
    …
    add_action( ‘omega_after_header’, ‘omega_get_secondary_menu’ );
    add_action( ‘init’, ‘church_register_menu’ );

    }

    function church_register_menu() {
    register_nav_menu( ‘secondary’, _x( ‘Secondary’, ‘nav menu location’, ‘omega’ ) );
    }

    function omega_get_secondary_menu() {
    get_template_part( ‘partials/menu’, ‘secondary’ );
    }

    add_action(‘omega_before_secondary_menu’, ‘omega_wrap_open’, 7 );
    add_action(‘omega_after_secondary_menu’, ‘omega_wrap_close’ );

    Thanks!

    January 16, 2015 at 5:46 pm #2958
    han
    Keymaster

    Yes, that’s correct.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)

You must login to reply to this topic.

Copyright © 2025 THEMEHALL.

  • Terms of Service
  • Resources
  • Blog
  • Support
css.php