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

    (@gamerz)

    Just put <div><?php email_link(); ?> | <?php print_link(); ?></div>

    Thread Starter gverhaeg

    (@gverhaeg)

    thanks for your quickly response.

    Where I must do it ….

    In all single, post, template, … I have inserted this line:
    <?php load_template (get_template_directory() . ‘/includes/print.php’); ?>
    and I created the following code in the /includes/print.php file
    <?php

    // create Array for posts/pages ID’s for that you don’t want to Wp-Print icon shown…
    $noprint = “34”; // A Propos
    $noprint = $noprint . “,623”; // Espace-Prive
    $noprint = $noprint . “,133”; // Contact

    $noprint_list = preg_split(“/[\,]+/”, $noprint);
    $thePostID = $post->ID;
    if (! in_array($thePostID,$noprint_list))
    {
    if(function_exists(‘wp_print’))
    {
    print_link();
    }
    }
    ?>
    When I write your line code in the Custom “Print Text Link Style” field, I just receive the ” | ” in the post or page.

    Plugin Author Lester Chan

    (@gamerz)

    Replace print_link(); with print_link().' | '.email_link() ?

    Thread Starter gverhaeg

    (@gverhaeg)

    I’m sorry. I don’t understand …

    What is the link between this code and the Setting>Print Options>Print Text Link Style

    I would like to receive 2 text at the bottom of each post/page
    “<Print Icon> Print this Post/Page” and “<email Icon> Send this Post/Page”
    to have the choice to print paper ou send to …

    Many thanks

    Plugin Author Lester Chan

    (@gamerz)

    Sorry I don’t get what you mean as well, you want the code for the screenshot, I gave you the code that I use which is similar to that.

    On my website, for example this post https://lesterchan.net/blog/2013/12/30/audio-technica-ath-m50-headphones/

    For Print Text Link Style and Email Text Link Style, I am using Text Link only. This is a sample code that I use which is based on https://getbootstrap.com/

    <ul class="list-inline">
    <?php if(function_exists('email_link')): ?><li><i class="glyphicon glyphicon-envelope"></i> <?php email_link(); ?></li><?php endif; ?>
    <?php if(function_exists('print_link')): ?><li><i class="glyphicon glyphicon-print"></i> <?php print_link(); ?></li><?php endif; ?>
    </ul>

    Okie I think I done enough, I don’t normally provide support like this to suit your needs/design/theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Email this Post’ is closed to new replies.