News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Floating 'Print this page' button in "printpage" action

Started by Biology Forums, April 09, 2014, 07:39:10 PM

Previous topic - Next topic

Biology Forums

This allows for easy print access once you're in the "printpage" action.

Find:

<h1 class="largetext">', $context['forum_name'], '</h1>

Add above:

<div style="position: fixed; right: 10px; top: 10px;"><button onclick="myFunction()">Print this page</button><script>
function myFunction()
{
window.print();
}
</script></div>

Advertisement: