Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #91176
    Nancy
    Participant

    How can I put menu bar below my header? And, also why can’t I add content to a few of them? http://slaveryshatterslives.com/

    Thank you in advance. By the way, I am having many difficulties with this theme and little support

    #91233
    wensolutions
    Participant

    Hello Nancy,
    We have replied your queries in the steps below.

    To move the menu bar (above the header) to below the header you need to follow the steps below:
    1. First you need to create and activate child theme.
    Reference here for child theme https://codex.wordpress.org/Child_Themes
    2. After successfully creating child theme you need to copy and paste below code in child theme’s functions.php file as a whole.

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }
    function child_remove_parent_function() {
        remove_action( 'wen_business_action_before_content', 'wen_business_add_custom_header_content', 6 );
    
    }
    add_action( 'wp_loaded', 'child_remove_parent_function' );
    function wen_business_site_branding(){
    
        $branding_class = array();
        $branding_class_text = '';
    
        // Show title
        $show_title = wen_business_get_option( 'show_title' );
    
        $move_tagline_below_title = wen_business_get_option( 'move_tagline_below_title' );
        if ( 1 == $move_tagline_below_title ) {
          $branding_class[] = 'tagline-below-title';
        }
    
        $move_logo_after_title = wen_business_get_option( 'move_logo_after_title' );
        if ( 1 == $move_logo_after_title ) {
          $branding_class[] = 'logo-after-title';
        }
    
        $show_tagline_separator = wen_business_get_option( 'show_tagline_separator' );
        if ( 1 == $show_tagline_separator ) {
          $branding_class[] = 'show-tagline-separator';
        }
    
        if ( ! empty( $branding_class ) ) {
          $branding_class_text .= implode(' ', $branding_class );
        }
        // nspre($branding_class_text);
    
        ?>
    
    <div class="site-branding <?php echo $branding_class_text; ?>">
          
    
          <div class="title-description-wrap">
            <?php if ( 1 == $show_title ): ?>
              <h1 class="site-title">
                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
              </h1>
            <?php endif ?>
    
            <?php $show_tagline = wen_business_get_option( 'show_tagline' ); ?>
             <?php if ( 1 == $show_tagline ): ?>
              <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
             <?php endif ?>
          </div><!-- .title-description-wrap -->
    
        </div><!-- .site-branding -->
    
        <?php 
        //Custom Header
         $flag_apply_custom_header = apply_filters( 'wen_business_filter_custom_header_status', false );
        if ( true != $flag_apply_custom_header ) {
          return false;
        }
    
        $custom_header_details = array();
        $custom_header_details = apply_filters( 'wen_business_filter_custom_header_details', $custom_header_details );
    
        if ( empty( $custom_header_details ) ) {
          return;
        }
    
        // Render custom header now
        wen_business_render_custom_header( $custom_header_details );
        ?>
    
        <?php if ( true != wen_business_get_option( 'disable_primary_menu' )  ): ?>
          <div id="site-navigation" role="navigation">
              <?php
                $menu_class = array();
                if ( true == wen_business_get_option( 'disable_underline_in_primary_menu' ) ) {
                  $menu_class[] = 'primary-disable-underline';
                }
    
                wp_nav_menu( array(
                  'theme_location'  => 'primary',
                  'container'       => 'nav',
                  'container_class' => 'main-navigation',
                  'menu_class'      => implode( ' ', $menu_class ),
                  )
                );
              ?>
          </div><!-- #site-navigation -->
        <?php endif ?>
    
        <?php
    
      }
    

    3. Now it should be done by now.

    Hope this will solve your issue.
    Let us know how it goes.

    Regards!!

    #91275
    Nancy
    Participant

    thanks so much for your help. I spent all day trying to create a child theme to no avail. The wordpress instructions ard extremely confusing. I tried using child theme customizers, but they failed. I wish there was an easier way to fix this issue. Anyway, thanks again. I really appreciate the time you have invested in helping me. Nancy

#91305
wensolutions
Participant

Hello @Nancy, sorry for the trouble.

We have emailed you the customized Child Theme copy of WEN Business Pro.

Please install it and activate it from the admin panel. The changes should take place right after the activation of Child Theme.

Let us know if you have anything else after implementing it.

#93147
Melissa
Participant

I’m also trying to move the header above the menu, but running in to some issues just as Nancy did. The site I’m working on is http://www.greatertomballrealestate.com. Could you please also help me by emailing me a customized Child Theme copy of WEN Business Pro?

Thank you in advance for your help. 🙂

#93162
wensolutions
Participant

You can PM your email at support[at]wensolutions.com for customized Child Theme.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘put top menu below header’ is closed to new replies.