• Resolved Yari

    (@yariarenas)


    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.

    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="https://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 https://figureskatinginharlem.org (and on the /blog page)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    The default behavior of the homepage button is to link to specific posts and print those posts.

    To include a button that will print the homepage and not link to specific posts, use the custom placement option.

    Thread Starter Yari

    (@yariarenas)

    I am using the custom placement option. The code is added directly into the theme template. Any thoughts?

    Thread Starter Yari

    (@yariarenas)

    Hi, I’m noticing this was marked as resolved, but it’s not. Per my note, I AM using the direct code on the template and am still having this issue. Any ideas/thoughts?

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    It’s happening because in your template these pages are defined as category/archive/homepage. This affects the behavior of the PrintFriendly & PDF button (it assumes you want to print the post, not the category/archive/homepage).

    You can install the HTML button code directly to your page to avoid this assumption.

    Get the button code at https://www.printfriendly.com/button

    Thread Starter Yari

    (@yariarenas)

    Thanks, I think this will do it!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Print button redirects to another page’ is closed to new replies.