Remove the Print button in SMF 2.1

in Tutorials on 30 Jul 2021

  smf  2.1  buttons

Remove print button in smf 2.1
Not all websites need a "Print" button. SMF has this option out of the box but some people like me do not need it as it takes space. Let's remove a single line of code to rid this pesky button.

Open Display.php file in Sources folder and find/remove this line:

    if ($context['can_print'])
        $context['normal_buttons']['print'] = array('text' => 'print', 'custom' => 'rel="nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0');

Image by

PixelfyStudio Team
Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded PixelfyStudio in 2009 to which he is dedicated full time. |


Find the right theme for you. Browse through our gallery of expertly-crafted free SMF themes to find the perfect one for your needs.