| Learning to Edit a Joomla Template |
Video Showing How To Edit a Joomla Template![]() Seeing Your Template CodeThis tutorial will show you how to start editing Joomla templates. I'd recommend starting with a plain Joomla installation - a test site. Don't try this for the first time on your live site! If you need help installing Joomla on your computer we have intsructions for both the P.C. and the Mac. We're going to be using the default rhuk_milkyway template. We'll start by looking at the index.php file. It is located here: / templates / rhuk_milkway / index.php. Every template has this file and it places all of the different elements on the page.
Editing Your Template CodeThis is a little trick that will swap the modules in the left and right-hand columns.
Seeing Your CSS CodeNext we'll look at the CSS file which controls the color, fonts, images and much more for your template. There was only one index.php file but often there are many CSS files. Each one controls a different aspect or style of the template - for example, one might control the red variation of the template, another green variation and a third the blue. Template designers split them into different files so you don't have to load them all each time - you don't have to load the green and blue code if you're only using the blue code. However, 99% of the time Joomla designers put all of the most important code into template.css (fairly logically named). It is located in this folder: / templates / rhuk_milkway / css /.
Editing Your CSS Code Part 1First, let's change part of our site's style. We'll modify the design of links on our site:
![]() Editing Your CSS Code Part 2Next we'll move the search box from the top-left to the top-right:
Great, I've Got That ... What Next?If you're feeling confident after these first steps, see if you can follow our tutorial on changing the logo on a Joomla template. |
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright © 2012 Open Source Training, LLC. All rights reserved.