• Resolved Yari

    (@yariarenas)


    Hi again, my support request was marked as resolved before it actually being resolved.
    https://wordpress.org/support/topic/print-button-redirects-to-another-page/

    I’ll include the details again below:

    I’m having a problem where on pages that list blog posts (ie. blog landing page and home page where we’re showing the latest posts), the print icon seems to be redirecting to the last listed blog post. Note that I’m using the custom placement option; code provided by the plugin directly inserted into the template.

    I notice that on all other pages, the code generates a “#” link:

    <div class="printfriendly pf-alignleft"><a href="#" rel="nofollow" onclick="window.print(); return false;" class="noslimstat"><img style="border:none;-webkit-box-shadow:none; box-shadow:none;" src="http://cdn.printfriendly.com/button-print-gry20.png" alt="Print Friendly" /></a></div>

    But on the pages that list blog posts, it’s linking to the blog post first and only then does the print/pdf dialogue box pop up.

    I’ve reviewed the loop for the posts and the url is properly closed with a </a>, does anyone know what else could be causing this issue? You can see here http://figureskatinginharlem.org (and on the /blog page)

    I understand that the plugin’s default for home page (and possibly the blog page, when home is static) is to link to the post, however, I was told that the custom placement option should print the current page. What can I do to ensure that the current page is printing and it’s NOT redirecting to a blog post?

    Thanks

    • This topic was modified 7 years, 2 months ago by Yari.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Print button redirects to blog post instead of printing current page’ is closed to new replies.