Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter glgeorgiou

    (@glgeorgiou)

    Hello again,

    Using the Chrome Dev tools i see that the following piece of code is executed.

    f.fn.fancybox = function(a) {
            var d, e = f(this), c = this.selector || "", k = function(g) {
                var h = f(this).blur(), j = d, k, l;
                !g.ctrlKey && (!g.altKey && !g.shiftKey && !g.metaKey) && !h.is(".fancybox-wrap") && (k = a.groupAttr || "data-fancybox-group",
                l = h.attr(k),
                l || (k = "rel",
                l = h.get(0)[k]),
                l && ("" !== l && "nofollow" !== l) && (h = c.length ? f(c) : e,
                h = h.filter("[" + k + '="' + l +
                '"]'),
                j = h.index(this)),
                a.index = j,
                !1 !== b.open(h, a) && g.preventDefault())
            }
            ;
            a = a || {};
            d = a.index || 0;
            !c || !1 === a.live ? e.unbind("click.fb-start").bind("click.fb-start", k) : n.undelegate(c, "click.fb-start").delegate(c + ":not('.fancybox-item, .fancybox-nav')", "click.fb-start", k);
            this.filter("[data-fancybox-start=1]").trigger("click");
            return this
        }

    More specifically this piece of code
    var d, e = f(this), c = this.selector || "", k = function(g) {

    Going step over i can see that an irrelevant post is loaded and afterwards the fancybox of the print preview appears.

    So, it must be a plugin failure.
    I wish that the author plugin will find a solution.

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    The category/archive option is for pages with excerpts of multiple posts.

    Try these options:

    1) Uncheck the category box and manually place the shortcode on your category page.
    <?php if(function_exists('pf_show_link')){echo pf_show_link();} ?>

    2) Uncheck the category box and manually place the html code on your category page.

    You can get the PrintFriendly & PDF html button code here: https://www.printfriendly.com/button

    <script>var pfHeaderImgUrl = '';var pfHeaderTagline = '';var pfdisableClickToDel = 0;var pfHideImages = 0;var pfImageDisplayStyle = 'right';var pfDisablePDF = 0;var pfDisableEmail = 0;var pfDisablePrint = 0;var pfCustomCSS = '';var pfBtVersion='1';(function(){var js, pf;pf = document.createElement('script');pf.type = 'text/javascript';if ('https:' === document.location.protocol){js='https://pf-cdn.printfriendly.com/ssl/main.js'}else{js='https://cdn.printfriendly.com/printfriendly.js'}pf.src=js;document.getElementsByTagName('head')[0].appendChild(pf)})();</script><a href="https://www.printfriendly.com" style="color:#6D9F00;text-decoration:none;" class="printfriendly" onclick="window.print();return false;" title="Printer Friendly and PDF"><img style="border:none;-webkit-box-shadow:none;box-shadow:none;margin:0 6px" src="https://cdn.printfriendly.com/pf-print-icon.gif" width="16" height="15" alt="Print Friendly Version of this page" />Print <img style="border:none;-webkit-box-shadow:none;box-shadow:none;margin:0 6px" src="https://cdn.printfriendly.com/pf-pdf-icon.gif" width="12" height="12" alt="Get a PDF version of this webpage" />PDF</a>

    Thread Starter glgeorgiou

    (@glgeorgiou)

    Hi,

    The 2nd option, PrintFriendly & PDF html button code, operates in some category pages. Operates i.e. in https://apminstitute.org/category/donations/. It does not operate in: https://apminstitute.org/category/mathematics/ and https://apminstitute.org/category/members-cat/ in which only the first post summary is previewed.

    The 1st option which i tried first <?php if(function_exists('pf_show_link')){echo pf_show_link();} ?> does not work.

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    The 2nd option, PrintFriendly & PDF html button code, operates in some category pages. Operates i.e. in https://apminstitute.org/category/donations/. It does not operate in: https://apminstitute.org/category/mathematics/ and https://apminstitute.org/category/members-cat/ in which only the first post summary is previewed.

    I can see it is also not working on the page https://apminstitute.org/category/donations/ on your site.

    Could you please share us the screenshot of Print Friendly and PDF Button plugin settings from your site?

    The 1st option which i tried first <?php if(function_exists(‘pf_show_link’)){echo pf_show_link();} ?> does not work.

    In which theme file have you added that code?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom print icon does not operates properly in category page’ is closed to new replies.