Genesis Responsive Slider Tutorial

How to Use Thesis Hooks

Thesis Hooks make your job as website designer easier by giving you a simple way to modify the Thesis theme.  Here is a quick introduction.

Instead of making a number of changes in as many different files,  hooks enable you to hook into the theme framework while keeping all your changes in a single file. They are placeholder to add or subtract from the basic functionality of the theme.

This consolidation makes your design “future proof” since changes to the underlying theme or to WordPress is not affected.

The coolest thing about hooks is that by finding the appropriate Thesis hooks, you can customize the theme to do just about anything you want.

Let’s take an example:

Place Thesis Navigation Menu beneath the header
remove_action('thesis_hook_before_header' , 'thesis_nav_menu');
add_action('thesis_hook_after_header' , 'thesis_nav_menu');

To see it on your own installation, just copy the following lines into your custom_functions.php file in Thesis. The easiest way to do this is to start from your WordPress dashboard. Then click on the Custom File Editor under the Thesis heading on the left hand side of the dashboard.

From the example above you can see that the first line removes the navigation menu from its original position above the header. The second line simply re-inserts it after the header.

Simple, isn’t it?

Ok, for non-technical people, there is a bit of a learning curve. But after you learn a few simple techniques once you are good well into the future. Thesis is responsible keeping your design working with future upgrades of WordPress.

Now, let’s try adding some of our own text in. Most people want to change the footer from the default. Here is how you do it:


/* Custom Footer Hook */
remove_action('thesis_hook_footer', 'thesis_attribution');
function add_custom_footer ()
?>
Roger Easlick, im@awesomeim.com, 700 Eastlake Trail, Oxford, MI 48371, 248-841-4918

Privacy Policy - Terms of Service

}
add_action('thesis_hook_footer', 'add_custom_footer');

For techniques you haven’t mastered I am more than willing to help.

Get Thesis today and start blogging on a professional looking site right out of the box.

3 Reasons Why the Thesis Theme for WordPress is Better

The Thesis theme for WordPress enables you to reach highest percentage of your target audience better than any other WordPress theme. Here are three reasons why.

First, the Thesis theme is easy to understand. The simple interface gives you complete design control at the click of a mouse.

Thesis also integrates hooks which allow you to remove parts of the theme framework or to enhance it with design elements of your own without having to modify the original theme code. This keeps the code clean and makes it easier to reverse changes that don’t give the desired results.

In the latest version at the time of this writing (v1.8), you can even backup and restore configuration changes you make within the Thesis theme. That means that you can set up a number of sites with the same or similar settings without having to go through each of the settings for each site.

This comes in handy if you create a number of products and want to set up a blog instance and a members instance of each site with the same optimized layout and configuration

The creator of the Thesis theme also optimized the code for SEO.  Search Engine Optimization (SEO) makes it easy for search engines like Google to understand what each of your blog posts or articles is about. That means more people will find your content and will follow your call to action.

Because of the unique design of the Thesis, you will make most if not all changes within only two files.  That makes it easy to find changes you have made. In most themes you would need to fiddle with a half dozen different files to make changes.

In other WordPress themes, changing elements such as the header, footer, sidebars, or the style require you to modify a separate file for each element. With Thesis, you only have two files.

If you are not much of a coder, then you will appreciate the helpful and experienced folks who hang out in the support forums.

I love Thesis and use it on all of my sites. It is an easy product to promote. I’m proud to be an affiliate. Get your copy today!