Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1393683
    petemaster5000
    Participant

    I’m using Integrity stack…

    Can you direct me to the best way to accomplish a header with 3 parts inline…

    Address1 | logo | Address2

    Thanks!

    #1394150
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! What you are trying to accomplish requires a template customization, we would like to suggest that you use 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.

    Once you have your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?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">
    
            <div class="x-column x-sm x-1-3" style="padding: 0px;">
              Address 1
            </div>
    
            <div class="x-column x-sm x-1-3" style="padding: 0px;">
              <?php x_get_view( 'global', '_brand' ); ?>
            </div>
    
            <div class="x-column x-sm x-1-3" style="padding: 0px;">
              Address 2
            </div>
                  
          </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>
          </div>
        </div>
      </div>
    
    <?php endif; ?>

    Please do not forget to add the address 1 and 2 in the column provided above.

    3] Save the file named as _navbar.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/global/

    The code above will be applied when you select the “Stacked” logo and navigation layout in the customizer, Appearance > Customize > Header > Logo and Navigation.

    Hope this helps.

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