I run two simple B&B booking websites, linking to a third party reservation system called FreeToBook (FTB)
FTB recently introduced a new responsive booking widget which I added to the sites, using the standard HTML box and copy/pasting the div text as instructed.
The widget ought to display a drop down calendar but the HTML is clearly inhibiting this action, so the widget is not functioning as intended. A friend, whose site is built using Weebly, had the same problem which was solved by using a different widget in an i-frame.
I’ve been in touch with FTB who told me that I need to edit the HTML code controlling the box’s behaviour: “The box with the booking widget needs to have “overflow-y:hidden;” removed.”
Is there a solution to this problem which a basic to intermediate RW user can press into use?
Btw, it needed both overflow-x and overflow-y changed (hence just using “overflow” above). Just changing “overflow-y” didn’t clear the issue.
I clearly need to go back to the widget provider and ask for assistance, but beyond what I’ve already said (basically "wail: your widget has broken my website) it would be really helpful to explain what the problem is.
The problem you’re having is that the code that’s fixing the problem is using something called CSS ID’s more exactly the stacks ID to apply the changes to the overflow attribute.
Stack IDs will look like this #stacks_in_100_page12. Starting with the #stacks_in or #stacks_out.
Stack IDs are unique to every instance of the stack being used. These IDs are generated by stacks for internal use of the individual stack and change if you copy or use them in a partial or external with each instance. That’s why I rarely use them for CSS overrides. Sorry I should have corrected this and given you a more “universal” approach instead of adding to a poor technique.
Unfortunately I’m away from my Mac for the next couple of days so I can only make an untested untried suggestion. Perhaps someone else with a web tools handy can help out.
If you’re using stacks 4, on the HTML stack you are pasting the widget into there should be a place to add a class name, if my memory is correct it’s under the area called HTML. Find that attribute and add the class name
myOverflow
Then try adding this CSS:
.myOverflow, .myOverflow * {
overflow: visible;
}
If you’re not using stacks 4 you will need to use something like Joe Workmen’s CSS Box stack to apply the class name.
Once you’ve got this approach working then it should work anyplace you use it without changing it. This from my iPad and memory so it might not work the first try.
Stacks 4 is great and I do recommend upgrading, but you don’t have to upgrade to make the CSS fix more generic. As I mentioned earlier you could place the HTML stack inside Joe Workman’s free CSS box stack and apply the class to it.
If you do upgrade to stacks 4 the CSS class attribute is now on most stacks. In addition once you have the HTML widget working you can make it an external (new stacks 4 feature) and share it between projects.