Tagged: x
-
AuthorPosts
-
May 5, 2016 at 4:49 pm #957548
jmgijzelParticipantHi,
Theme x platform is great! thanks for all the work.
I would like to place my essential grid into the footer widgets area.
I make use of child theme and I would like to know
– What is the correct ‘do_shortcode function’?
– Where to add the function into the ‘child x’ wp-footer.php?Thanks,
Martijn
May 5, 2016 at 5:04 pm #962971
jmgijzelParticipantHello,
I found the correct way.
<?php
// Ess. Grid shortcode is placed inside the “do_shortcode” method, wrapped in single quotes
echo do_shortcode(‘[ess_grid alias=”example”]’);?>
See below code for the place in the wp-footer.phph
// ============================================================================= // VIEWS/INTEGRITY/WP-FOOTER.PHP // ----------------------------------------------------------------------------- // Footer output for Integrity. // ============================================================================= ?> <?php // Ess. Grid shortcode is placed inside the "do_shortcode" method, wrapped in single quotes echo do_shortcode('[ess_grid alias="residential"]'); ?> <?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 ) : ?> <footer class="x-colophon bottom" role="contentinfo"> <div class="x-container-fluid max width"> <span>YOUR CONTENT HERE</span> <?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 x_get_option( 'x_footer_content' ); ?> </div> <?php endif; ?> </div> </footer> <?php endif; ?> <?php x_get_view( 'global', '_footer' ); ?>May 6, 2016 at 12:20 am #978181
RupokMemberGlad that you figured it out and thanks for sharing. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-957548 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
