Hi,
You would have to use CSS in your print stylesheet.
Try this.
@media print{
.alm-previous-post{
display: none;
}
.alm-previous-post:first-of-type{
display: block;
}
}
Cheers,
That works great for printing the first post, do you think there’s a work around for printing the current post – the post that’s showing in the url?
Cheers,
Oh, got you.
Not that I can think of. There isn’t a way (out of the box) to determine which post is currently in view.
That’s what I suspected, but it was worth the question.
Thank you, and thanks for such an amazing plugin.
Have a good one.
Thanks! If I think of something I’ll post back here.
F.Y.I. not the cleanest solution, but I’ve used this code which opens the current post in a new tab and automatically starts the print process:
<a href="javascript: w=window.open('<?php the_permalink() ?>'); w.print();" ><i class="fa fa-print fa" aria-hidden="true"></i></a>
It could be adapted to open a pop up window rather than a tab, which might be nicer.
Cheers,