• Resolved Inner Journey

    (@inner-journey)


    Hi,

    I have installed the WP-Print plugin on my site and have included the print link in one of my posts. How can I make this link open in a new tab?

    Also, my theme includes a Mailchimp Email Form addon, which integrates a Mailchimp sign-up form at the bottom of my post. However, this form is not very printer friendly and appears very big on the print version of the post. Is it straight forward to remove this from the print friendly page?

    Many thanks for a great plugin!

    https://www.ads-software.com/plugins/wp-print/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lester Chan

    (@gamerz)

    1. Under WP-Admin -> Settings -> Print

    Then under “Print Text Link Style”, choose Custom, then edit the HTML code to something like

    <a href="%PRINT_URL%" rel="nofollow" target="_blank" title="%PRINT_TEXT%">%PRINT_TEXT%</a>

    2. You have to ask the plugin author what hook are they using to insert the sign up form into the post content.

    Once you got that hook, put this remove_filter( 'the_content', 'HOOK_NAME'); and put it on line 25 https://github.com/lesterchan/wp-print/blob/master/print.php#L25

    Thread Starter Inner Journey

    (@inner-journey)

    Hi, thanks for your reply, the opening in new tab works now. In regards to the hook, my themes authors, who integrate the Mailchimp email form addon gave me the following css in order to remove the form from the page when physically printed by the browser: @media print {
    .x-subscribe-form {
    display: none;
    }
    }

    This doesn’t remove the form from the printer friendly version created by WP-Plugin though… Do you recognise the hook name in this code?

    Plugin Author Lester Chan

    (@gamerz)

    That is the CSS code not the hook name though.

    A hook will look something like this add_filter( 'the_content', 'hook_name' );

    or you can try adding

    .x-subscribe-form {
    display: none;
    }

    To the print-css.css of WP-Print

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Open in new tab and remove email form’ is closed to new replies.