Chapter 8. Usage Notes

How to insert your logo into a print page

Several of the displays on the front end provide a small print icon so that the displayed information may be easily printed. It is an easy change to ensure that the company (or web site) logo is displayed upon all print output.

The instructions are modified from an original article in Joomla Magazine September 2011. It is included here so that others may make use of it. It describes how a company logo can be inserted into any printed document from the print icon on the site.

Adding a logo for print output

  1. Copy the file ''component.php'' from the folder Joomla-installation/templates/system to the root of the template folder of your template that you are using: (for example: joomla-installation/templates/rhuk_milkyway/component.php).

  2. If you need to overwrite some component.php in your new placed template folder, don't do it, as it may include code that the template needs to use (I don't know, but it's safer if you don't do this action in this case).

  3. Now open the component.php file in your template folder (you can use wordpad)

  4. Search for the line that states: <body class="contentpane"> around lines 47 on beez_20 template.

  5. Now, copy and place this code right under it: <img src="/www.yourwebsite.nl/templates/your-template-folder/your-images-map/logo.png" alt="Logo" /> To use a relative URL use it relative to the httd directory. i.e. src=”<?php echo $this->baseurl ?>/templates/your-template-folder/your-image-map/logo.png” where you use the appropriate folder and logo name for your site.

  6. Just change the source of the image so it matches exactly the image that you want included, and that's it!

Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries