Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1201888
    xponent21
    Participant

    I am trying to add content that shows up below the menu and above the content on every page of the site. I have added what I would like on the homepage (No Container, Header, Footer) with Cornerstone:

    SEO

    Any help would be greatly appreciated.

    #1201970
    Joao
    Moderator

    Hi There,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
    Then navigate to your child theme’s /framework/views/global directory create a file named _navbar.php and paste the code below:

    
    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_NAVBAR.PHP
    // -----------------------------------------------------------------------------
    // Outputs the navbar.
    // =============================================================================
    
    $navbar_position = x_get_navbar_positioning();
    $logo_nav_layout = x_get_logo_navigation_layout();
    $is_one_page_nav = x_is_one_page_navigation();
    
    ?>
    
    <?php if ( ( $navbar_position == 'static-top' || $navbar_position == 'fixed-top' || $is_one_page_nav ) && $logo_nav_layout == 'stacked' ) : ?>
    
      <div class="x-logobar">
        <div class="x-logobar-inner">
          <div class="x-container max width">
            <?php x_get_view( 'global', '_brand' ); ?>
          </div>
        </div>
      </div>
    
      <div class="x-navbar-wrap">
        <div class="<?php x_navbar_class(); ?>">
          <div class="x-navbar-inner">
            <div class="x-container max width">
              <?php x_get_view( 'global', '_nav', 'primary' ); ?>
            </div>
          </div>
        </div>
      </div>
    
    <?php else : ?>
    
      <div class="x-navbar-wrap">
        <div class="<?php x_navbar_class(); ?>">
          <div class="x-navbar-inner">
            <div class="x-container max width">
              <?php x_get_view( 'global', '_brand' ); ?>
               <?php x_get_view( 'global', '_nav', 'primary' ); ?>
              <div class="navbar-text">WE HELP PEOPLE WORK TOGETHER<br><span class="subtitle"> BETTER.</span></div>
           
             
            </div>
          </div>
        </div>
      </div>
    
    <?php endif; ?>

    Than add the following code to Appereance > Customizer > Custom > CSS

    .navbar-text {
      
      margin-top: 20px;
      float: right;
      font-size: 40px;
      color: white;
      text-align: right;
      margin-bottom: 20px;
      
    }
    
    .subtitle {
      font-size: 65px;
      color: white;
      
    }
    
    .x-navbar-inner {
         max-height: 70px;
    }
    
    

    Hope that helps,

    Joao

  • <script> jQuery(function($){ $("#no-reply-1201888 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>