Remove the Print button in SMF 2.1

in Tutorials on 30 Jul 2021

sell  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 https://www.unsplash.com



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

idesignSMF.com | SimpleMachines.org



0 Comments


rocket_launch

Awesome Support. Download our themes, you also get theme support.