Custom Template change from Thesis Theme 1.5.1 to 1.6

November 9, 2009

If you’ve updated from 1.5.1 to 1.6, and now all of your Custom Templates pages are showing two lots of title and content (or other strangeness), then you may be wondering what you did wrong. The answer is, you didn’t.
A change was made in version 1.6 of Thesis, that you’ll need to bypass. Go into your custom_functions.php and add the following:

remove_action('thesis_hook_custom_template','thesis_custom_template_sample');

In trying to be helpful, a template sample was added into the core of Thesis (meaning, it’s not easily available for you to edit), which is set to run for all page IDs, meaning two lots of templates are actually running.

Why this sample template has been added in like this is beyond me. How is it a sample template, if it’s deep within core code somewhere where most people won’t be able see it, and certainly shouldn’t be editing it? If it had to be included, then putting that into the default custom_functions.php where people can easily see and edit it would have been a much better idea in my personal opinion.

About the Author

Gary Jones

Gary Jones is a web developer from Basingstoke with a keen interest in anything to do with the web. He runs Gamajo Tech, a freelance web development company in Basingstoke, delivering sites and code professionally to small businesses and individuals.

Get social with Gary: Twitter | Facebook | LinkedIn | Last.fm

If you enjoyed this post, please consider leaving a comment and subscribing to the RSS feed or subscribing via email to have future articles delivered to your feed reader or email inbox.

{ 1 comment }

Terence November 20, 2009 at 05:14

Gary,

Thanks for the heads-up about ‘thesis_custom_template_sample’.

I have been installing Greg Rickaby’s WidgetMe framework and could not figure out why my header banner ad would not show. Then I accidentally put
“remove_action(‘thesis_hook_custom_template’,'thesis_custom_template_sample’);” into my ‘custom.css’ file by mistake and lo and behold, the banner ad appeared.

You can see the now visible header location at http://thesiswebstore.com/.

Very strange…

Reply

Comments on this entry are closed.

Previous post:

Next post: