Answer the question
In order to leave comments, you need to log in
How to add a block to the appeared fancybox block?
Added magnification of fancybox images for product. When enlarged, the image opens and a block is added to the html of the page:
<div class="fancybox" style="transform: translate(0px, 0px);">
<div class="fancybox-placeholder" >
<img class="fancybox-image" src="/catalog/Goods/0001/21345342.jpg">
</div>
</div>
$(".mainimage").click(function () { //ID кнопки для увеличения
$(".fancybox-placeholder").append('<div>Текст нужный</div>'); //Добавление блока перед img
});
.fancybox-placeholder
, or after clicking add?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question