Using Pro what is best practice to change footer?

Hi,

Hope this message finds you well.

I’m using Pro on a website and selected the Icon theme.

Created a custom header using pro header builder, and can do this for the footer as well, but I actually just want to re-arrange the order of the footer elements, for example move the “footer content” to the bottom of the footer as there is where I use some javascript for the copyright line so it auto updates that years.

Where do I find the appropriate file I need to copy to the child theme and change the code in that file?

Or is it better to create a custom footer using footer builder?

Thanks

Carlo

Hi There,

You don’t have to copy the template to the child theme.

You can add the the custom Javascript to the text element, it should work fine:

Regards!

Hi,

I think you didn’t understand the question.

If I enable bottom footer it enables to switch on social media, footer menu and footer content (where I can add the javascript)

it’s just that that displays first instead of last. so on top is the footer content, then social media and last the menu and i want to reverse that order.

Hi There,

In this case, you have to copy this file pro/framework/legacy/cranium/footers/views/integrity/wp-footer.php to the child theme in the same directory.

After that update the code of wp-footer file to this:

<?php

// =============================================================================
// VIEWS/INTEGRITY/WP-FOOTER.PHP
// -----------------------------------------------------------------------------
// Footer output for Integrity.
// =============================================================================

?>

  <?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_social_display' ) == '1' ) : ?>
          <?php x_social_global(); ?>
        <?php endif; ?>
        
        <?php if ( x_get_option( 'x_footer_menu_display' ) == '1' ) : ?>
          <?php x_get_view( 'global', '_nav', 'footer' ); ?>
        <?php endif; ?>

      </div>
    </footer>

  <?php endif; ?>

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

Hope it helps :slight_smile:

Thanks, that’s the file I was looking for

You’re welcome!
We’re glad we were able to help you out.

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