Jump to content

Comment modifier la largeur du Fancy Box Quick View Presta 1.6


Recommended Posts

Bonjour tout est dans le titre, je souhaite élargir un tout petit peu  la largeur du Fancy Box Quick View.

Par défaut celle-ci est de 1200px environ. Je souhaite la passer à 1350px. Mais je ne trouve pas le CSS à modifier dans l'arborescence de mon ftp.

 

Merci de votre aide.

<div class="fancybox-inner" style="overflow: auto; width: 1280px; height: 675px;"><iframe id="fancybox-frame1430814573366" name="fancybox-frame1430814573366" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" scrolling="auto" src="http://niceliving.fr/tecni-art/9-volume-xxl.html?content_only=1"></iframe></div>
Link to comment
Share on other sites

En fait je viens de trouver dans :

./themes/default-bootstrap/js/global.js

 

A la ligne 229

 

if (!!$.prototype.fancybox)
$.fancybox({
'padding':  0,
'width':    1350, # j'ai remplacé 1206 par 1350 #
'height':   610,
'type':     'iframe',
'href':     url + 'content_only=1' + anchor

 

Link to comment
Share on other sites

  • 1 year later...

voici la func en question :
function quick_view()
{
    $(document).on('click', '.quick-view:visible, .quick-view-mobile:visible', function(e){
        e.preventDefault();
        if (this.rel)
            var url = this.rel;
        else
            var url = $(this).data('link');
        var anchor = '';

        if (url.indexOf('#') != -1)
        {
            anchor = url.substring(url.indexOf('#'), url.length);
            url = url.substring(0, url.indexOf('#'));
        }

        if (url.indexOf('?') != -1)
            url += '&';
        else
            url += '?';

        if (!!$.prototype.fancybox)
            $.fancybox({
                'padding':  0,
                'width':    1087,
                'height':   610,
                'type':     'iframe',
                'href':     url + 'content_only=1' + anchor
            });
    });
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...