Archived topic
Inserting elementor template into default gp footer
4 replies · Started by David on October 8, 2017
i am trying to insert elementor template replacing default gp footer so i retain disable elements functionality that way i can easily disable on some pages. usung code snippets ive tried this and a few other variations but cannot get it to actually replace the default one. either i get below or above
add_action( 'site-footer','tu_insert_into_site_footer' );
function tu_insert_into_site_footer() { ?>
<div class="site-footer">
<?php echo do_shortcode( '[elementor-template id="415"]' ); ?>
</div>
<?php }
If you are never going to display a GP Footer then an alternative is to add the Elementor shortcode into a single Footer Widget. That way you can disable on certain pages from the editor.
No opposite i would like its to display globally 404, new pages, etc. While being able to easily disable for landing pages or other promo pages. i was able to achieve this in the nav with the help of leo but cant figure out the footer
I actually like David's answer - why not put the shortcode into a footer widget? That way you retain GP functionality. Does that not work?
i guess i misread his response thinking he meant manually inserting into each page. this works thanks david thanks tom.