Hi
Try to delete the following:
[purerecipe]
and add this:
<div class="print-only">
[purerecipe]
</div>
Let me know if it works!
Hi Lumics,
Thanks for your answer π
Could you tell me where can I find this code ?
In the theme, the code for the print function is the following one (in the file “purepress-shortcode”) :
if(function_exists('pf_show_link')) {
$output .= pf_show_link();
}
Have a nice day !
Hi
Sorry, I meant the “code” in your post, where you set up your recipe (change to html).
Ok I see, but the problem is I don’t use this shortcode in my recipes (I just fill out the recipe form and I publish my article).
I just tried with a former version of Printfriendly (3.2.5) and it works :/ Something has probably changed in the plugin code but what ? π
But when you published your recipe, you should see:
[purerecipe]
So just delete this one and try to add:
<div class="print-only">
[purerecipe]
</div>
I see that it is working now. I don’t know what has changed in the code
No I’m sorry I don’t see this shortcode in my recipes.
I’m afraid I’ll need to edit all my articles one by one with the code you gave me xD
Thank you for the tip !
I think I understand : I just edited the file single.php and changed the shortcode [purepress] with yours. And It seems to be ok now !
Thanks a lot π
π Ok, that’s even a better solution
Looks like you’ve solved the problem. Thanks for the help @lumics !
No worries π
Here is the exact code you have to change in single.php file.
Replace:
if($recipe_test) echo do_shortcode('[purerecipe]');
with
if($recipe_test) echo do_shortcode('<div class="print-only">[purerecipe]</div>');