X Theme Integrity - Want footer Nav under content

I’m looking to get our footer navigation menu to appear under our content. It currently has the nav above the content. Any help is appreciated. I am using x-theme with Integrity as the base.

Hello @dfmarketing,

Thanks for asking. :slight_smile:

Are you looking to move footer navigation menu into footer widget area? Can you please confirm or elaborate?

Thanks.

Hi there,

You will have to override the footer template file through a child theme.

Please create the following path in x.child : framework/legacy/cranium/footers/views/YOUR_STACK then add the file: wp-footer.php inside the stack directory.

Edit the file and add this code:

<?php

// =============================================================================
// VIEWS/ _ _ /WP-FOOTER.PHP
// -----------------------------------------------------------------------------
// 
// =============================================================================

?>

  <?php x_get_view( 'global', '_footer', 'widget-areas' ); ?>

  <?php if ( x_get_option( 'x_footer_bottom_display' ) == '1' ) : ?>

    <footer class="x-colophon bottom" role="contentinfo">
      <div class="x-container max width">
          
        <?php if ( x_get_option( 'x_footer_content_display' ) == '1' ) : ?>
          <div class="x-colophon-content">
            <?php echo do_shortcode( x_get_option( 'x_footer_content' ) ); ?>
          </div>
        <?php endif; ?>          

        <?php if ( x_get_option( 'x_footer_menu_display' ) == '1' ) : ?>
          <?php x_get_view( 'global', '_nav', 'footer' ); ?>
        <?php endif; ?>

        <?php if ( x_get_option( 'x_footer_social_display' ) == '1' ) : ?>
          <?php x_social_global(); ?>
        <?php endif; ?>

      </div>
    </footer>

  <?php endif; ?>

<?php x_get_view( 'global', '_footer' ); ?>

Hope this helps.

1 Like

^^^ This worked amazing!!! Thank you so much!

You’re most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.