Avada Forums Community Forum Modify Header Version 4 – move secondary header location

Viewing 1 post (of 1 total)
  • Author
    Posts
  • zozopelli
    Participant
    Post count: 2

    Move Secondary Header inside fusion-header and below the logo and search box.

    Thanks for any and all help.

    Essentially place this code within fusion header:

    if ( ! function_exists( ‘avada_secondary_header_content’ ) ) {
    /**
    * Get the secondary header content based on the content area.
    *
    * @param string $content_area Secondary header content area from theme optins.
    * @return string Html for the content.
    */
    function avada_secondary_header_content( $content_area ) {
    $secondary_content = ”;
    $content_to_display = Avada()->settings->get( $content_area );
    if ( ‘Contact Info’ === $content_to_display ) {
    $secondary_content = avada_contact_info();
    } elseif ( ‘Social Links’ === $content_to_display ) {
    $secondary_content = avada_header_social_links();
    } elseif ( ‘Navigation’ === $content_to_display ) {
    $mobile_menu_wrapper = ”;
    if ( has_nav_menu( ‘top_navigation’ ) ) {

    $mobile_menu_text_align = ‘ fusion-mobile-menu-text-align-‘ . Avada()->settings->get( ‘mobile_menu_text_align’ );
    $mobile_menu_wrapper = ‘<nav class=”fusion-mobile-nav-holder’ . esc_attr( $mobile_menu_text_align ) . ‘” aria-label=”‘ . esc_attr__( ‘Secondary Mobile Menu’, ‘Avada’ ) . ‘”></nav>’;
    }

    $secondary_menu = ‘<nav class=”fusion-secondary-menu” role=”navigation” aria-label=”‘ . esc_attr__( ‘Secondary Menu’, ‘Avada’ ) . ‘”>’;
    $secondary_menu .= avada_secondary_nav();
    $secondary_menu .= ‘</nav>’;
    $secondary_content = $secondary_menu . $mobile_menu_wrapper;
    }

    return apply_filters( ‘avada_secondary_header_content’, $secondary_content, $content_area, $content_to_display );
    }
    }

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.