Book Image

Joomla! 1.5 Templates Cookbook

Book Image

Joomla! 1.5 Templates Cookbook

Overview of this book

Templates in Joomla! provide a powerful way to make your site look exactly the way you want either using a single template for the entire site or a separate template for each site section. Although it sounds like an easy task to build and maintain templates, it can be challenging to get beyond the basics and customize templates to meet your needs perfectly.Joomla! 1.5 Templates Cookbook consists of a series of self-contained step-by-step recipes that cover everything from common tasks such as changing your site's logo or favicon and altering color schemes, to custom error pages and template overrides. It starts off with the basics of template design and then digs deep into more complex concepts. It will help you make your site more attractive and user-friendly. You will integrate your site with various social media such as Twitter and YouTube; make your site mobile-friendly with the help of recipes for creating and customizing mobile spreadsheets; and use miscellaneous tricks and tips to get the most out of your website. You get all of this in a simple recipe format that guides you quickly through the steps and explains how it all happened.
Table of Contents (16 chapters)
Joomla! 1.5 Templates Cookbook
Credits
About the Author
About the Reviewers
Preface

Styling the layout of your Joomla! template for print


There are, as we have seen, quite a few elements of our Joomla! website that we do not need to be printed.

Getting ready

The elements that are not of use when we print a page include the search box, navigation links, the Powered by Joomla! footer, and advertisements.

How to do it...

  1. 1. You can hide the elements of the page, which are highlighted in the previous screenshot, by using CSS in the print.css file that you created earlier for your template.

    #tabmenu,
    #search,
    .bannergroup,
    .buttonheading,
    . module_menu,
    #power_by,
    #syndicate
    {
    display: none;
    }
    
  2. 2. You can now see a more suitable view for printing, which focuses upon the content in the page:

Notice that the breadcrumb is still visible (Home>> About Joomla!). Breadcrumbs can be useful in orientating visitors who print content from your website, as it helps to identify a potential path they can follow through your website to find the content they printed online.

How it works....