Hello.
With a click on the print pdf button, a javascript exception is thrown: Uncaught ReferenceError: Raven is not defined. We are unable to patch the script as it’s loaded from cdn: https://cdn.printfriendly.com/printfriendly.js
Any help will be appreciated.
Regards,
Petr
At first I thought this was a theme problem, then I thought it was a Fix WordPress problem, but after searching for where the function comes from, I found out that it is an interference from the Print Friendly plugin.
I am having a very strange problem with getting the first image at the top of my Home page to behave the same as all the other images. I’ve tried several different ways using CSS and HTML divs to get it to stay the full size, be centered, with the caption under it. I looked at the source and discovered that a WooCommerce function is getting called in for displaying this first image and I am not using WooCommerce. The first image is being put inside <div class=”pf-content”>
. How do I block this from happening? It is really messing up the top of my Home page.
The following is how I have it coded in the Home page. It keeps getting reduced from 900 px to 500 px wide. I’ve tried using a 1000px image, even a 2000px image and they all get shrunken to 500 px and offset to the right of center with the caption offset flush left.
[caption id="attachment_1168" align="aligncenter" width="900"]<a href="https://dev.baeecorp.org/wp-content/uploads/reception_panorama-900x219.png"><img src="https://dev.baeecorp.org/wp-content/uploads/reception_panorama-900x219.png" alt="Photo of the opening exhibition at the U.S. Botanic Garden" width="900" height="219" class="size-full wp-image-1168" style="border:5px double #ccd; border-radius:10px; text-align:center;" /></a> Panorama of the opening reception, February 2014, at the U.S. Botanic Garden for the BAEE Exhibition.<br />Photo credit: Dennis Chesters.[/caption]
I have even tried putting a controlling div around it (<div style="float:center; width:100%; text-align:center;">
). That helps to get it centered with caption centered underneath but the image still gets shrunken because it is put inside the WooCommerce funtion pf-content. I searched the WordPress installation and found a file called pf.php in the Print Friendly plugin but that doesn’t make any sense to me that this is needed for friendly printing. Here is the function that I think is the culpret:
/**
* Add pf-content class to WooCommerce main Product Image
*
* @since 3.5
*/
function woocommerce_single_product_image_html( $image ) {
if ( $this->is_content_algo_on($image) ) {
return $this->add_class($image, 'pf-content');
} else {
return $image;
}
}
/**
* Add pf-content class to WooCommerce Product Images from gallery
*
* @since 3.5
*/
function woocommerce_single_product_image_thumbnail_html( $image ) {
return $this->add_class($image, 'pf-content pf-gallery-img', 'img');
}
How can I protect my image so this unwanted function doesn’t come in? The code leading up to the image is
</header><!-- .entry-header -->
<div class="entry-content">
<div class="pf-content">[caption id="attachment_1168" align="aligncenter" width="900"]<a
…
Is there a way to add a function in my child theme’s function.php file that blocks that pf-content div?
Thanks for your help.
]]>We are using “Custom Permalinks” option with WP. Your plugin does not work with custom permalinks and returns a 404 error on a post page when they are used. The solution is apparently simple, and we found it on the WP forums. Adding print=1 to the URL fixes it.
Here is the URL that will show you a 404 if you click the print link on it: https://stage2.hairlosstalk.com/news/uncategorized/sample-post-page/ (popup password is pizza / pizza)
The custom permalink we’re currently using is:
“/news/%category%/%postname%/”
We have run into a problem with your plugin “WP Print Friendly”. Simply because we are using “Custom Permalinks” option with WP. Your plugin does not work with custom permalinks and returns a 404 error on a post page when they are used. The solution is apparently simple, and we found it on the WP forums. Adding print=1 to the URL fixes it.
First logical approach was to contact Gadgetine support and ask them to implement this fix around your plugin. They’ve been mentally incapable of grasping what I am saying however, and we’ve lost 3 weeks going back and forth with them on it. Its absolutely crazy at this point.
My programmer suggested just contacting the plugin creators directly instead, so I am giving that a go. Here is the URL that will show you a 404 if you click the print link on it: https://stage2.hairlosstalk.com/news/uncategorized/sample-post-page/ (popup password is pizza / pizza) The custom permalink we’re currently using is: “/news/%category%/%postname%/”
]]>Call me paranoid – but shouldn’t line 629 of wp-print-friendly.php be:
return esc_url( $link );
Is it possible to remove the “print this page” link from just one or two select pages?
]]>Hi,
I’m creating a site using the Rescue theme by Jake Caputo (https://themeforest.net/item/rescue-animal-shelter-theme-petfinder-support/4134977) for Central California Labrador Retriever Rescue. The development site is located at https://labrescue.wsbydesign.com
When I tested the site to confirm that the responsive features were working, I found that the very first Print Friendly image is appearing enlarged and blurry. It’s the only one on the entire site that’s acting this way. Can you please look at the site and let me know what I might need to do in order to resolve this issue? I appreciate your help!
Sincerely,
Kim
When a click the print button a pop up displays saying i have won something and redirects to a spam site.
]]>Hi,
I have added a print link inside the loop of the single view of my blog posts.
My code looks like this:
<?php wpf_the_print_link('true','Druckversion', 'print_link', ' » ', 'Druckversion', 'new');?>
The link is displayed and the URL looks fine: /print/ is attached to my post’s url.
When the link is clicked, a new window opens, but it instantly redirects back to the normal post view.
My blog’s permalinks look like this:
/%category%/%postname%/
Any idea what’s wrong here?
]]>Installed the plugin as normal, followed instructions about going to permalink page and clicking “save changes” button after activation.
I used the function in my theme as follows:
<?php wpf_the_print_link(); ?>
It outputs the text link perfectly but when I click it it just 404s.
Here is the post url followed by the url the print link outputs:
https://example.com/section/environmental/business/2011/05/testing-2
https://example.com/section/environmental/business/2011/05/testing-2/print
My permalinks are setup as follows:
/section/%category%/%year%/%monthnum%/%postname%
Note that ‘business’ is a child category to ‘environmental.’
I have also tried just letting the plugin put in the links. When I do that it outputs two links like this “Printer Friendly | Printer Friendly” which both link to the same url mentioned above.
Any assistance would be greatly appreciated.
]]>This strange error showed up in the left hand column of the add post screen inside and under the title for the TAG plugin. I have no idea how it got there. The plugin was active for less than 12 hours:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /data/5/0/138/118/301933/user/306961/htdocs/drumpoint/wp-content/plugins/wp-print-friendly/wp-print-friendly.php on line 122
]]>