Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi
    Try to delete the following:
    [purerecipe]
    and add this:

    <div class="print-only">
        [purerecipe]
    </div>

    Let me know if it works!

    Thread Starter elsappy

    (@elsappy)

    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).

    Thread Starter elsappy

    (@elsappy)

    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

    Thread Starter elsappy

    (@elsappy)

    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 !

    Thread Starter elsappy

    (@elsappy)

    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

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    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>');

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Not working on Cookingpress theme’ is closed to new replies.