Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1189849
    hammondb
    Participant

    I want to add a 2 column footer to the bottom of my blog page.

    On the left column I’d have the shortcode for a thrive leads optin, on the right some text and another shortcode.

    How do I go about this?

    Domain: brenthammond.com

    #1189858
    Thai
    Moderator

    Hi There,

    Please add the following code under functions.php file locates in your child theme:

    add_action( 'x_after_view_global__index', 'print_custom_shortcodes' );
    function print_custom_shortcodes(){
    	if(is_home()){
    	?>
    	<div class="x-section">
    		<div class="x-container">
    			<div class="x-column x-1-2"><?php echo do_shortcode( '[shortcode-1]' ); ?></div>
    			<div class="x-column x-1-2"><?php echo do_shortcode( '[shortcode-2]' ); ?></div>
    		</div>
    	</div>
    	<?php
    	}
    }

    After that replace [shortcode-1] and [shortcode-2] with your shortcodes.

    Hope it helps 🙂

    #1257124
    hammondb
    Participant
    This reply has been marked as private.
    #1257125
    hammondb
    Participant
    This reply has been marked as private.
    #1257175
    hammondb
    Participant
    This reply has been marked as private.
    #1257560
    Friech
    Moderator

    Hi There,

    On your child theme navigate to this directory: \x-child\framework\views\integrity\ in there create a file named wp-footer.php and paste the code below on it.

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-FOOTER.PHP
    // -----------------------------------------------------------------------------
    // Footer output for Integrity.
    // =============================================================================
    
    ?>
    
      <?php x_get_view( 'global', '_header', 'widget-areas' ); ?>
      <?php x_get_view( 'global', '_footer', 'scroll-top' ); ?>
      <?php x_get_view( 'global', '_footer', 'widget-areas' ); ?>
    
      <?php if ( x_get_option( 'x_footer_bottom_display' ) == '1' and is_page() ) : ?>
    
        <footer class="x-colophon bottom" role="contentinfo">
          <div class="x-container max width">
    
            <?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; ?>
    
            <?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; ?>
    
          </div>
        </footer>
    
      <?php else : ?>
    
      <div class="x-colophon bottom">
        <div class="x-container max width">
          <div class="x-column x-1-2"><?php echo do_shortcode( '[shortcode-1]' ); ?></div>
          <div class="x-column x-1-2"><?php echo do_shortcode( '[shortcode-2]' ); ?></div>
        </div>
      </div>
    
      <?php endif; ?>
    
    <?php x_get_view( 'global', '_footer' ); ?>

    Replace the [shortcode-1] with thrive leads shortcode, and [shortcode-2] with the social icon shortcode.

    Hope it helps, Cheers!

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