Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #852998

    charliesa
    Participant

    Is it possible to put a colored boarder only on the sides (NOT all the way around.

    The intent here is to narrow the width of the slider so it isn’t the full width of the page.

    #853094

    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thanks.

    #853129

    charliesa
    Participant

    No need, I figured it out. TANKS!

    #853132

    charliesa
    Participant

    I did have another question though that I can’t figure out. I’m using a “stacked” masthead. Logo on top, below that, the Navlinks.

    What I want to do is have the logo on top, then the slider, and then the navlinks.

    Site: http://beta.sjhp.org

    This Integrity 7, but I’m sure you could guess that 🙂

    #853203

    Friech
    Moderator

    Hi There,

    You need to create two files on your child theme. To do this navigate to \wp-content\themes\x-child\framework\views\global\ directory and create a file named _navbar.php then paste the code below on it.

    <?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>
     <?php x_get_view( 'global', '_slider-below' ); ?> <!-- slider below masthead -->
      <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; ?>

    Create the second file under \wp-content\themes\x-child\framework\views\integrity\ directory and named it as wp-header.php and paste the code below on it.

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Header output for Integrity.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( 'global', '_header' ); ?>
    
      <?php x_get_view( 'global', '_slider-above' ); ?>
    
      <header class="<?php x_masthead_class(); ?>" role="banner">
        <?php x_get_view( 'global', '_topbar' ); ?>
        <?php x_get_view( 'global', '_navbar' ); ?>
        <?php x_get_view( 'integrity', '_breadcrumbs' ); ?>
      </header>
    
      <?php /*x_get_view( 'global', '_slider-below' );*/ ?>
      <?php x_get_view( 'integrity', '_landmark-header' ); ?>

    Hope it helps, Cheers!

    #853214

    charliesa
    Participant

    Thanks!!!!!

    #853256

    Friech
    Moderator

    You’re more than welcome, glad we could help.

    Cheers!