x

Skyscanner widget cutting part of the widget off

Hi team,

I am having trouble displaying the whole skyscanner widget on my website.

The calendar search is being cropped from view with the widget: http://www.damessential.com/flights.html

Any suggestions?

Thanks

Sam

2,125 Views
Message 1 of 11
Report
1 Best Answer
Square

Best Answer

Strange that they don't actually mention what to add for the height even though they have that as part of the FAQ question. I'm guessing they want you to do something like this:

<style> 
div.widget { 
    width: 250px; 
    height: 700px;
} 
</style> 

<div class="widget">
<div data-skyscanner-widget="SearchWidget" data-locale="en-GB" data-affiliate="network:CJ;publisher:12345678;market:GB"></div> <script src="https://widgets.skyscanner.net/widget-server/js/loader.js" async></script>

View Best Answer >

2,096 Views
Message 12 of 11
Report
10 REPLIES 10
Square

It looks like the Skyscanner scripting isn't able to figure out a height it needs. You might need to customize the code a little bit in order to specify a height. Does Skyscanner provide any assistance with their widget? They might be able to tell you what you can add to the code to resolve it.

2,121 Views
Message 12 of 11
Report

Hi @Adam

Thanks for the quick response.

Weebly provide some documentation but only advise on how to change the width and when I tried to change the width the widget didnt change..

Here is my current code:

<div data-skyscanner-widget="SearchWidget" data-locale="en-GB" data-affiliate="network:CJ;publisher:8060944;market:AU"></div>
<script src="https://widgets.skyscanner.net/widget-server/js/loader.js" async></script>

Here is a skyscanner link to the code editor:

https://partners.skyscanner.net/affiliate-search-widget?publisher=8060944&network=CJ&locale=en-GB&ma...

Skyscanner suggestion to changing width and height:

<style> 
div.widget {
width: 250px;
}
</style>

<div class="widget"><div data-skyscanner-widget="SearchWidget" data-locale="en-GB" data-affiliate="network:CJ;publisher:12345678;market:GB"></div>
<script src="https://widgets.skyscanner.net/widget-server/js/loader.js" async></script>

If you could help that would be great as I am at a loss right now. 

Cheers

Sam

2,104 Views
Message 12 of 11
Report
Square

Best Answer

Strange that they don't actually mention what to add for the height even though they have that as part of the FAQ question. I'm guessing they want you to do something like this:

<style> 
div.widget { 
    width: 250px; 
    height: 700px;
} 
</style> 

<div class="widget">
<div data-skyscanner-widget="SearchWidget" data-locale="en-GB" data-affiliate="network:CJ;publisher:12345678;market:GB"></div> <script src="https://widgets.skyscanner.net/widget-server/js/loader.js" async></script>
2,097 Views
Message 12 of 11
Report

Thanks @Adam legend! Smiley Happy

2,084 Views
Message 12 of 11
Report
Square

Glad to help! Smiley Happy

2,080 Views
Message 12 of 11
Report

Hey again @Adam the widget is working pretty well but I have noticed some extra blank space showing below the widget which I cant seem to get rid of... do you have a suggestion? I tried adjusting the height of the widget but this did not change the blank space below the widget. 

http://www.damessential.com/flights.html

2,063 Views
Message 12 of 11
Report
Square

That page looks a little different in the editor than it does on the live site. Can you try re-publishing so those changes are live (if you're ready to, that is)?

2,061 Views
Message 12 of 11
Report

Thanks for the quick reply @Adam the site has been republished, although I don't think this makes any difference in the appearance. 

2,049 Views
Message 12 of 11
Report
Square

Oh, it looks like you're missing a </div> tag in your embed code. It should go before the <script></script> code.

2,044 Views
Message 12 of 11
Report

Hi @Adam I'm not sure that's it as there is a </div> already in place..unless I am missing something really obvious..

Here is the current code..

<style>
div.widget {
width: 250px;
height: 500px;
}
</style>

<div class="widget">
<div data-skyscanner-widget="SearchWidget" data-locale="en-GB" data-affiliate="network:CJ;publisher:4736216;market:GB"></div>
<script src="https://widgets.skyscanner.net/widget-server/js/loader.js" async></script>

Thanks again for your help! I owe you a beer if you're ever in Amsterdam Smiley Happy

955 Views
Message 12 of 11
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.