Personal tools

Gallery3:Tutorials:Themes

From Gallery Codex

Contents


Creating your own theme by copying the default theme

  1. Copy gallery3/themes/wind to gallery3/themes/MyTheme (you can change MyTheme to anything you'd like to name your theme to)
  2. Edit gallery3/themes/MyTheme/theme.info
    • Change the name from Gallery Wind to something else like My Theme
    • Change the description to something unique to describe your theme
    • Change the author to your name
    • Save the file
  3. Editing your files
    • To change the CSS, edit the files under gallery3/themes/MyTheme/css/
    • To change page elements, edit the files under gallery3/themes/MyTheme/views/
  4. Create your own thumbnail
    • Once you've made your theme the way you want, take a screenshot and resize it so it's 200 pixels wide. The default screenshots are 200x133.

Modifying the default theme

Modifying the default theme will change the default look and feel. Doing so will also make upgrading harder because every upgrade will override your changes. However, if you want to do that, you can follow the steps above for editing the CSS and page elements.

Notes

  • Don't give your theme a name that starts with a number. PHP won't accept a digit as the first letter of a token
    • (so you can't have "$3theme" as a variable or "class 3theme_controller").
    • the visible text can use numbers to you could still name your theme 'threetheme' and have the text show '3theme'
advertisements