• Resolved damelco

    (@damelco)


    Hi Ravan,

    Great plugin!
    Wonder if two small tweaks are possible?
    1) currently using the Center while scrolling option to keep lightbox on the screen … but is there a way to simply disable the viewport scrollbar while easy fancybox is active?
    2) using mPDF to generate documents directly to screen … easy fancybox displays them fine with a class=’fancybox-pdf’ declaration … currently using the ‘title’ attribute as a hint for the link button … would like to use the title feature of easy fancybox … but the button’s help text is inappropriate … and there is no image (so thumbnail alt text is not available). any idea as to the best alternative?
    thanks again Ravan!!
    -DJ

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Dj,

    1) currently using the Center while scrolling option to keep lightbox on the screen … but is there a way to simply disable the viewport scrollbar while easy fancybox is active?

    You could add a Custom CSS?rule html.fancybox-active { overflow: hidden }

    2) … and there is no image (so thumbnail alt text is not available). any idea as to the best alternative?

    Have you tried giving the button an alt attribute? It’s not valid HTML?but if it’s not filtered out by the editor (or WordPress) then it might work ??

    Thread Starter damelco

    (@damelco)

    Thanks Ravan,

    1) … I’ll try that … great.

    2) yes, actually I did just that … and the alt attribute does make it to the browser. but sadly the script still selects the <b>title</b> attribute, even if I have the <b>Allow title from thumbnail alt attribute</b> checked … I hate to make a hard edit to your script and have to chase after ever update.
    would your script honor a dummy image (thumbnail) tag with an alt attribute inside an pdf link… then maybe I could hide it with css?!?!

    thanks again!!

    -DJ

    Hmmm, yes. The script will prefer the title attribute if there is one… There is the possibility to use Metadata but that’s a Pro option. With that, you’d be able to do something like this:

    
    <a href="pdf_url" class="button {title:'PDF Title text'}" title"Tooltip hover text">Button text</a>
    

    @ravanh
    Thanks for the background scroll css rule.
    Works great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pdf fancybox’ is closed to new replies.