Thesis theme change home page

Thesis is cleverly put together. You will certainly learn things about how Thesis works, which will better equip you to make changes to those workings. More importantly, it will help you avoid pitfalls, and track down problems you may encounter. For example, perhaps you have a portfolio page that shows off some of your recent projects. In any event, the goal is to have the content of a static page display, and then have a blog-like index of posts below it, which is not your blog page.

First of all, in spite of the length, you should recognize the basic structure.

In that case, create private methods, one for each special page, and call those methods from a case statement in your actual custom loop method. The next thing to notice is there are two WordPress Loops! The second, lines , is for our list of portfolio posts. Line 4 uses a private method to grab a request parameter for what screen of posts to display. I put this in a separate method, shown on lines , because a WordPress inconsistency makes this more complicated than it should be. Also, I believe capturing the value needs to be done at the start of the method, before we re-run or reset the query.

Lines are the first Loop, which should only have one item to process, the current static page. All of the Thesis hook functions remain, which means that your custom hook functions will continue to run on this page.

Thesis Theme Review: Pros & Cons of Thesis Framework - ShivarWeb

Line 25 resets the WordPress query object, in preparation for re-using it. This is just basic cleanup, but you need to do it if another query is going to be run on the page. Lines build up the parameters for our second query. This is a slightly different way of doing it than constructing a query string, as we did in earlier examples. Using an array is generally neater when you have a larger number of parameters, and makes it easier to modify or add to later.

First Step—Creating your “coming soon” page

Lines are the second WordPress Loop. The one Thesis-specific item in this loop, beyond the CSS classes, is on line 46, where we retrieve the Thesis post image for the item, and then on line 50, where the image HTML is outputted. I built this loop up slowly, one piece at a time, until I had completed it.

Then move on to the next piece of your customization. There are a total of 16 different loops you can customize on your Thesis-equipped WordPress site. As explained above, you do this by writing functions inside your Custom Loop class. You can define each of these loop functions inside the same Custom Loop class—you only need one. In general, you want to customize the most specific loop that you can. Additionally, each of the 16 loops has a method that delegates control to the corresponding standard Thesis loop, as described in the first loop example above.

The loop that handles a search results page. A custom search loop must handle both conditions. This means that the URL requested does not correspond to any page.


  • Set Thesis Navigation?
  • What WordPress Theme To Use And Why I Use Thesis;
  • 27 Best Free WordPress Themes (Hand-Picked for )?
  • critical thinking skills survey!
  • critical essay on waiting for godot.

The loop that handles a page without any posts or pages. Different from the page, it means that the requested URL maps to a legitimate page, but there is no post data to display. I think this should be rare.

Berchman.com

These two loops handle individual posts. These two loops handle individual static pages. Has no effect if no static front page is set. These loops handle archive-style pages. The default loop for all of the archive-style pages. Many Thesis display settings affect the formatting of archives pages, so be sure to start there, before resorting to a custom loop. Thesis users got by without the Custom Loop API for quite some time, it was only added in the most recent version of Thesis. If affecting The Loop is so useful, how did people get along without this feature?

10+ Highly Customizable WordPress Themes

Customizations implemented with those mechanisms will require less maintenance in the long run, as they are more isolated from changes in WordPress or Thesis. Here are a few things that people often want to do, where you might think you need to create a Custom Loop, along with links to articles or forum posts that show an easier way. Start by reading the various articles about Thesis hooks, and then move onto specific techniques and solutions.

Thesis for WordPress Options

Thesis is incredibly flexible, once you get to know it. I found the following articles useful while learning about the Thesis Custom Loop API, and some of my examples are inspired by code I found in them. If you really want to learn more about writing custom loops, these are great places to start. The code presented here was developed and tested on a standard install of WordPress 3.

No plugins were activated. Tagged as: php , thesiswp , WordPress.


  • ford foundation dissertation fellowship honorable mention.
  • Widgets on Static Home page not working.
  • gun control research essay outline.
  • Thesis Theme Review: Pros & Cons of Thesis Framework;
  • Template Hierarchy?

Michael — thanks for the very thorough article. A couple of Questions — 1. Does the answer above have something to do with paging? Hi Rick, and thanks for visiting! Your posts on the DIY Forums were highly influential on my article. Honestly, your example there was more useful than the official API docs! At least, I find that idiom there. But the portfolio listing did require paging, so I needed to re-? Thank you!

Thank you very much! Any help would be greatly appreciated! If you have HTML you want to use, simply replace the tags from the example with your own. I wondered if it was possible to maintain that squared layout when running the query instead of them being displayed line by line. Well, my example creates a page that has just one static page, which then pulls in a list of secondary posts.

Primary Sidebar

The standard home loop is going to pull in a set of 10 by default regular posts. While you can mostly accomplish this using CSS alone, there are enough corner cases with very small or wide window sizes that the Home page uses extra HTML elements to ensure correct behavior. That might look something like this this snippet replaces lines in my original example :.

I am using a static home page that is different from my blog page, as well. I have already excluded the news category from my blog page, now I just need to create my custom page and have it display everything in the news category. I get the custom loops, but I just need some direction as to how I go from a custom loop to making a category specific page that displays full posts in thesis. I have a question regarding this tutorial. I am trying to create a custom category loop for the category pages and show only the intro content on the 1st page, then on the paged pages not show it.

The thing is on the main page I want to have the subcategories for that category with 5 posts shown in a UL like now. Yet on the 2nd, 3rd, 4th etc pages I would like to show only 20 posts in a UL…. So, for the main page I just need to add in the subcategory UL. Then on the second page, 3rd page, etc I would like the list of recent articles in that catty to be 20, rather than 5. It mostly has to do with my shortcomings in understanding the structure of the code, especially when I want multiple arguments.

What am I doing wrong? First, getting the sorting right is a little complicated.