WordPress.org

Ready to get started?Download WordPress

Forums

Print me!
[resolved] Function to manually place the 'Print' in a template? (6 posts)

  1. sledge81
    Member
    Posted 1 year ago #

    Great plugin and its really light weight. However, my WP site uses a highly customized theme. This plugin puts the 'Print' text automatically. Is there a way to get rid of this and instead put it in a template file?

    Thanks.

    http://wordpress.org/extend/plugins/print-me/

  2. ClubUgly
    Member
    Posted 1 year ago #

    I like to know the same thing... I only need it on post pages and manually in some areas.

  3. sledge81
    Member
    Posted 1 year ago #

    Got it figured out.

    Add this to your theme's functions.php

    /* Function to Remove Automatic Placement of Print Button From Printme plugin */
    
    remove_filter( 'the_content', 'printme_add_link' );

    Use this function in your single.php or any other template where you want the print option to appear

    <?php echo printme_add_link($content); ?>

  4. hd.design
    Member
    Posted 1 year ago #

    Thanks Sledge!

  5. Aleksandr Zelenin
    Member
    Plugin Author

    Posted 1 year ago #

    Oh, I don't know that there is discussion about my plugin.

    It's very useful idea. I will do shortcode for it soon.

  6. Aleksandr Zelenin
    Member
    Plugin Author

    Posted 1 year ago #

    Shortcode and php-function were added

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic