Add Print Stylesheet

June 16th, 2013

Add Print StylesheetThis plug-in with separate versions for Joomla 1.5, 2.5 and 3.x loads a print stylesheet in the [template path]/css folder.

A print stylesheet can be useful to remove unwanted elements from printed copies of your web pages. This might include dark ink wasting backgrounds, menus and other elements that have no use in a printed copy. Many templates do not include a print stylesheet by default. You could edit the index.php file and insert appropriate code to add a print stylesheet but changes in the index.php can be overwritten by template updates.

Install the plug-in using the standard Joomla installer. You can install a newer version over an older version.

Upload the print stylesheet to the [template path]/css folder.

In Plug-in Manager, edit “System – Add Print Stylesheet”, add the stylesheet file name and enable the plugin.

That’s all there is to it!

New version v1.1 adds support for Joomla 3.1 and uses JURI::base() to more accurately determine the template path.