public
Description: OneBody is free, open-source, web-based social networking and online directory software for churches.
Home | Edit | New

Themes

To customize the look of OneBody, we have the concept of themes. A Theme is simply a folder in the themes/ directory with files that override the default view templates in app/views. Do not make changes directly to the templates in app/views as they will get overwritten the next time you upgrade OneBody.

To select a new theme, go to yourdomain.com/admin/settings, click on the “Appearance” tab, and select the theme from the list and save the changes.

Create a Theme

To create your own theme, make a copy of the default theme directory “aqueouslight” in the themes/ directory and give it a unique name (without spaces).

Put CSS, JavaScript, Images and other assets in the onebody/public/ folder, in the appropriate location — not in the theme folder.

The layouts/default.html.erb is the shell of every page displayed on the site. Creative changes to this file should allow for most theme design needs.

If, however, you need to edit the guts or look of actual page content, you may clone the needed structure found in app/views/* to your theme folder and customize the pages. Only copy the pages you need to modify, and try to keep your customizations to these pages to a minimum, as future upgrades may require some TLC if major changes are made to the HTML.

Custom Theme

In the AdminScreen select “Custom Theme” — this is where you can edit the html and upload assets, e.g. images, css files, etc. Changes can be previewed easily, but are not visible to site visitors until the theme is selected (using the directions at the top of this page).

Last edited by seven1m, Tue Mar 03 15:25:41 -0800 2009
Home | Edit | New
Versions: