Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 17

CurtisOdenTorbjornericgillettefAcknetjohansonlockerqwenty +11 guests

How do I change the html of a page in my theme?

A lot of people ask questions of the sort "how do I change this text" or "that html?" Most all of the html that Vanilla displayed is stored in views and the beauty of these views is that they can be overridden in your theme.

Here's how you do it, and I'll use the example of changing your discussion's rss feed.
  1. First you have to create a theme. Let's say you name your theme MyTheme.
  2. You need to find the view that displays the rss feed. In this case it's in /applications/vanilla/views/discussions/index_rss.php.
  3. Copy the view's file to your theme's folder. It has to have the same subpath as the original view. So in this case you'd copy the file to /themes/MyTheme/views/discussions/index_rss.php.
  4. Edit the copy of the view and your theme and it will display your changes.

How do I find the view I want to override?

If you want to find the view to override you usually just look at the url of the application. So in our example above you know that to view the rss of the discussions you go to /discussions/feed.rss. You need to know that Vanilla is the application all discussion and comment related activity Then you can just look on the /applications/vanilla/discussions folder to see what view might be appropriate.

Vanilla co-founder

Comments

  • Posts: 1
    Now, the World Wide Web is an important tool that has helped open up to soccer real madrid jersey 2011 collectors to a whole new range of shirts. There are now web sites specializing inwholesale soccer jerseys and shirts, the Soccer Jersey Club among them. The Soccer Jersey Club has a web site totally dedicated to ease of messi jerseyshopping from buyers around the globe.
Sign In or Register to comment.