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—changing the menu font style


  1. 1. Open the user_styles.css file and type the following lines of CSS into the bottom of the file, and then save your changes:

    #menu a:link,a:active{
    font-weight:normal;
    color:#ffffff;
    text-decoration:none;
    font-size:92%;
    }
    #menu a:hover,a:visited {
    color:#3a5083;
    }
    #menu {
    padding-left:20px;
    }
    
  2. 2. Find the #menubox class and change the CSS statement so that it looks like the following code:

    #menubox {
    background-color:#000000;
    height:32px;
    line-height:32px;
    }
    
  3. 3. Open the menu.php file from the root of your theme folder, and wrap the existing code with:

    <div id="menu">code</div>
    

    as seen below, and then save your changes:

  4. 4. Refresh your browser to view the changes.

What just happened?

In this exercise, you wrapped the menu.php links in a <div> tag so that you could give them a CSS ID. You did this so that you could define some different-styled links for the menu than the rest of the links in your theme. You also added a line-height...