Book Image

Moodle 1.9 Theme Design: Beginner's Guide

Book Image

Moodle 1.9 Theme Design: Beginner's Guide

Overview of this book

Moodle is a highly extensible virtual learning environment and is used to deliver online teaching and training materials. Theming is one of the main features of Moodle that can be used to customize your online courses and make them look exactly how you want them to. If you have been looking for a book that will help you develop Moodle Themes that you are proud of, and that your students would enjoy, then this is the book for you.This book will show you how to create themes for Moodle, change pre-installed Moodle themes, and download new themes from various resources on the Internet. It is filled with suggestions and examples for adapting classroom activities to the Virtual Learning Environment.This book starts off by introducing Moodle, explaining what it is, how it works, and what tools you might need to create a stunning Moodle theme. It then moves on to show you in detailed steps how to choose and change a Moodle theme, and explains what Moodle themes are and how they work. It shows you how to change an existing theme and test the changes that you have made.The latter half of this book will start you off on the road to creating your own themes from scratch. It provides detailed instructions to guide you through the stages of creating a stunning theme for your Moodle site. From planning theme creation, through to the slicing and dicing, and more advanced Moodle theming processes, this book will give you step-by-step instructions to create your own Moodle theme.
Table of Contents (18 chapters)
Moodle 1.9 Theme Design
Credits
About the Author
About the Reviewer
Preface
Glossary of Useful Terms and Acronyms

Time for action—creating a new Cascading Style Sheet


  1. 1. Navigate to C:\Program Files\Apache Software Foundation\Apache 2.2\htdocs\themes\mytheme.

  2. 2. Right-click on some empty space and choose New | Text Document, as seen in the following screenshot:

  3. 3. Rename the New Text Document.txt file to my_style.css.

  4. 4. Right-click on the config.php file in the same directory and choose Open With | WordPad and look for the following line:

    $THEME->sheets = array('styles_layoutffvv', 'styles_fonts', 'styles_color');
    
  5. 5. Change this line to:

    $THEME->sheets = array('styles_layout', 'styles_fonts', 'styles_color', 'my_style');
    

    You can download this code from the Packt website.

  6. 6. Remember to leave out the .css extension on the filename—this is necessary for the config.php file to be parsed by the PHP processor.

  7. 7. Save and close the config.php file.

What just happened?

In the last exercise, you set up Moodle to use your own newly defined stylesheet (my_style.css), so you can now make some changes to...