Tagged: x
-
AuthorPosts
-
September 25, 2016 at 11:47 am #1189849
hammondbParticipantI 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
September 25, 2016 at 12:09 pm #1189858
ThaiModeratorHi 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 🙂
November 14, 2016 at 5:44 pm #1257124
hammondbParticipantThis reply has been marked as private.November 14, 2016 at 5:46 pm #1257125
hammondbParticipantThis reply has been marked as private.November 14, 2016 at 6:29 pm #1257175
hammondbParticipantThis reply has been marked as private.November 15, 2016 at 1:14 am #1257560
FriechModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1189849 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
