- This topic has 9 replies, 3 voices, and was last updated 4 years ago by
David.
-
AuthorPosts
-
March 15, 2019 at 10:17 am #840059
John
Hi,
I’m trying to embed a calendar and search form on various pages on the site. i’ve been given Java script to place in head section. I added the javascript to the head using elements. Type Hook. And selected display entire site.
<script type=”text/javascript” src=”https://bookings.glampmanager.com/Little-Oak-Campsite-23420/Availability-Calendar-Widget/Javascript/”></script>
I then tried pasting the <iframe> body script using text editor (Text) on a page. No luck.
<iframe src=https://bookings.glampmanager.com/Little-Oak-Campsite-23420/Availability-Calendar-Widget/?Categories=3641″ id=”embeddedRentalCalendarFrame” style=”width: 100%;” frameborder=”0″></iframe>Sorry, I may have misunderstood how this works. Any pointers would be v helpful.
thanks John
GP Premium 1.7.8March 15, 2019 at 11:09 am #840105David
StaffCustomer SupportHi there,
where did you get the Javascript script that needed to be added to the head? As the src=”” doesn’t include the actual script filename
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 15, 2019 at 12:54 pm #840152John
Hi David,
Thanks for getting back. From the developer of the booking system. This is the instructions in the email:
Javascript file – Head section
<script type=”text/javascript” src=”https://bookings.glampmanager.com/Little-Oak-Campsite-23420/Availability-Calendar-Widget/Javascript/”></script>
IFRAME – Body Section
<iframe src=https://bookings.glampmanager.com/Little-Oak-Campsite-23420/Availability-Calendar-Widget/?Categories=3641″ id=”embeddedRentalCalendarFrame” style=”width: 100%;” frameborder=”0″></iframe>
Replace the “Categories” ID in the IFRAME URL for each category:
Romany Style Caravan – 3641
Camping-Pitch – 4752
Should I go back and ask about this missing file name?:
As the src=”” doesn’t include the actual script filename
Thanks
John
March 15, 2019 at 4:32 pm #840235Tom
Lead DeveloperLead DeveloperYea, there’s something wrong with that URL they’re using in the script call.
For example, try going to it: https://bookings.glampmanager.com/Little-Oak-Campsite-23420/Availability-Calendar-Widget/Javascript
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 15, 2019 at 11:38 pm #840387John
Thanks Tom,
I added the ?Categories=3641 part to the header scrip. All good.
Just one thing, the iframe table is displaying with a scroll bar. Is this something I can change?
John
<iframe src=https://bookings.glampmanager.com/Little-Oak-Campsite-23420/Availability-Calendar-Widget/?Categories=3641″ id=”embeddedRentalCalendarFrame” style=”width: 100%;” frameborder=”0″></iframe>
March 16, 2019 at 6:40 am #840566David
StaffCustomer SupportCould you link us directly to that page so we can take a look?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 17, 2019 at 10:48 pm #841821John
Hi David,
Thanks for getting back.
https://littleoakcamping.co.uk/glamping-in-north-nottinghamshire-2/
I’m using full width single column. 1130px
The table only has about 3 rows so no need for scroll bar.iframe:
<iframe id=”embeddedRentalCalendarFrame” style=”width: 100%;” src=”https://bookings.glampmanager.com/Little-Oak-Campsite-23420/Availability-Calendar-Widget/?Categories=3641″ frameborder=”0″></iframe>
Hope that helps.
Thanks
JohnMarch 18, 2019 at 3:37 am #841952David
StaffCustomer SupportHmmm – not not BB guru, but are you using a text module to add the iFrame? If so what happens if you use there HTML module?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 18, 2019 at 4:31 am #841991John
Thanks David
Good advice. I’m now using the HTHL module.
Still an issue though, which I’ll take up with the developer /
Thanks again.
John
March 18, 2019 at 5:04 am #842008David
StaffCustomer SupportIt may need a responsive wrapper placed around the iframe. Hopefully the dev will have an answer to that. Or maybe the BB guys.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.