[Resolved] Inserting elementor template into default gp footer

Home Forums Support Inserting elementor template into default gp footer

  • This topic has 4 replies, 3 voices, and was last updated 3 years ago by David.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #399660
    David

    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 }
    GP Premium 1.4.3
    #399672
    David
    Staff
    Customer Support

    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.

    #400331
    David

    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

    #400373
    Tom
    Lead Developer
    Lead Developer

    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?

    #400992
    David

    i guess i misread his response thinking he meant manually inserting into each page. this works thanks david thanks tom.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.