Ecommerce Shopify WordPress Discussion

Calling A Template In The footer.php file does not work

I've been learning WordPress and how PHP templates work and everything was smooth sailing until I couldn't call a template in a footer. The template when called in any other part of the site executes and is rendered but in the footer the JS code is present but no elements are visible. The "development" URL is this: pearlpublication.com.np/lumbinipalace.com **Here's what I did: ** I placed a shortcode (.which was generated by a hotel channel manager plugin as a booking/reservation engine) inside a template called inc_booking.php Then I placed an include function in the footer template. The footer did not render but there was an element with 0 height whose height I tried increasing using CSS. That didn't work. I inspected the page and there is a section of JS code <footer class="footer"> <div id="stickyfooters"> <script> // This script will be executed on the client-side document.write('<div id="spiderBooking"></div> <script> window.onload = (event) => { jQuery("#spiderBooking").SpiderBooking4({ hotelId: "0386594f0c0afd58",channelId: "387",type: "form",template: "horizontal",lang: "en",dateFormat: "d/m/Y",displayNbPersons:{adults:{initial:1,min:1,max:1},children:{display: false,initial:0,min:0,max:4},infants: {display: false,initial:0,min:0,max:4},}, }); }; </script> '); </script> </div> I tried calling dependencies but later moved the same code to the header where it was executed and rendered. I've played with the code till the point where i hard coded the JS itself. I do not know what else to do.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.