Comments (5)
Hi,
Sorry, but it is not possible to help you without seeing a live page/demo. It should work fine.
from fancybox.
I attached the url of the page.
It is on the checkout page, you must first have a product in the cart.
https://farmahogar.com/realizar-pedido/
from fancybox.
The problem is that the way you are using Fancybox is completely wrong. Look at this -
jQuery("#modal-pequenos-precios").fancybox({'overlayShow': true}).trigger('click').delay(5000);
Why on earth you have this weird code. You have to write something like this:
$.fancybox.open({
src : '#modal-pequenos-precios',
type : 'inline',
opts : {
//
}
});
Because you tell Fancybox to open an element and, when clicking your element, open it again. Therefore links do not work as you expect.
from fancybox.
Okey.
I generated that line with a trigger function so that the modal opens automatically without the need to click on the button.
What way would I have to be able to do it without this strange code?
from fancybox.
My code snippet shows how to immediately open the modal (e.g., $.fancybox.open(...)
)
from fancybox.
Related Issues (20)
- How to turn off the rotation animation of Fancybox.show() ?
- how do I force the close button of the popup to be "fixed" in position HOT 2
- Fancybox4 fullscreen on mobile HOT 2
- Using FB V3 & opening an iFrame programmatically. But, the hash is missing! HOT 2
- placing a close link in the lightboxed frame HOT 2
- Optimize mobile navigation on documentation site HOT 1
- `@fancyapps/fancybox doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.`
- What could be preventing Fancybox from running on mobile HOT 3
- navigator.userAgent flagged by Chrome
- Navigation is used in the address, which interferes interferes with ajax-navigation on site
- placeFocusBack not working on data-fancybox-trigger HOT 3
- thumbs options
- Drag image to to folder
- Image flickering when zooming in iOS Safari
- FancyApp Carousel plugin Sync expect a hardcode classname HOT 1
- Fancybox Not Opening pics on Safari HOT 2
- how to add class after fancybox-container? HOT 1
- Fancybox with Carousel error - Fixed
- Zoom bug in Safari version 14 and below HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fancybox.