Book Image

Moodle Theme Development

By : Silvina Paola Hillar
Book Image

Moodle Theme Development

By: Silvina Paola Hillar

Overview of this book

Theming is one of the main features of Moodle, and it can be used to customize your online courses and make them look exactly how you want them to,according to your target audience. If you have been looking for a book that will help you develop Moodle themes that you are proud of, and that your students will enjoy, then this is the book for you. We start off by introducing Moodle 3 and explaining what it is, how it works, and what tools you might need to create a stunning Moodle theme. We then show you how to choose and change the pre-installed Moodle themes in detailed steps, and explain what Moodle themes are and how they work. Next, we show you how to change an existing theme and test the changes that you have made. You can not only plan the customization of theme, but also tailor it using advanced Moodle theming processes; this book is your one-stop guide to creating your own personalized Moodle 3 theme.
Table of Contents (19 chapters)
Moodle Theme Development
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Dedication
Preface

Customizing the height and width of an element in Moodle on-premises with CSS


We can customize the height and width of an element in Moodle on-premises with CSS. In this example, we will customize the height and width of the logo that we have inserted in previous chapters. As we have just learned how to find the information to be able to change with CSS, we will do it in our Moodle on-premises. These are the steps that we have to follow:

  1. Within the administration block, click on Site administration | Appearance | Themes | Essential | General.

  2. Scroll down until you find Custom CSS, as shown in the following screenshot:

  3. Copy the code that gives the information of the element whose height and width are going to change. While copying the code, the element appears, as shown in the following screenshot:

  4. The code reads as follows:

          element.style { 
          } 
          #page-header a.logo { 
              background-image:
              url('//localhost/pluginfile.php/1/theme_essential...