Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Theming Vanilla 2
If I wanted to change the header of Vanilla, for example add a banner to the header or maybe even to the sidebar, what file can I edit to achieve this? I am sort of confused as how themes are built in Vanilla. My knowledge of php is very limited and I handle html and css fairly well.
0
Comments
Master Views: These represent everything that wraps the main content of every page. If all you want to do is add a menu or banner above Vanilla, this is the only file you will need to alter. To do so, copy the default master view from /applications/garden/views/default.master.tpl to /themes/your_theme_name/views/default.master.tpl and edit it there.
So, it's possible to change by editing the file '/applications/garden/views/default.master.tpl', but the proper way is to create a new theme and override the file.
I have seen lots of people use Vanilla forums, but very few have taken the time to drastically redesign the UI.
I understand the Vanilla 2 is built on top of Garden, but that shouldn't be adding extra complexity to the theme developer.
@mclovin I agree! i had to edit 6 different style-sheets to have a consistent look through out the forum. It feels extremely redundant.
My reset theme is nothing more than CSS cleanup (right now, I have replicated close to 50% of the default theme with just around 50 lines of css), some minor markup tweaks to fit my preferences (the site heading h1 tag being moved out of the menu division, and the removal of some unnecessary divs), and some stronger cross-browser compatibility.. The overall goal of the reset is to be a very simple base to make it much easier for themes to be developed from scratch.
http://github.com/XBleed/Garden/tree/master
@mclovin -- Currently, the #Menu styles are set in several css files. What you'll want to do is create a theme under yoursitedirectory/themes. Copy and paste the 'default' theme folder that is there now, and rename it to whatever you want to call it. Let's say, for example, you name it 'my_theme'. Now open my_theme/about.php and edit the $ThemeInfo array (change 'Default' to the name of your theme). Now you should be able to activate the theme via the dashboard. By default, it will load theme files via applications/garden, so you'll want to copy over whatever files you want to alter. If you just want to change the menu dropdown colors, you'll have to copy over: activity.css, garden.css, and profile.css from applications/garden/design to themes/my_theme/design. You'll also want to copy vanilla.css (from applications/vanilla/design), and conversations.css (from applications/conversations/design) Each one of those css files specifies the #Menu ul background over and over again.
It's very redundant for now, but if I can get this git thing figured out, and if @Mark / @Todd / whoever else approves of my new setup, you'd only have to copy / edit it once.