Thesis Hook Update: thesis_hook_archive_info Deprecated

August 29, 2010

in Thesis

A quick note for anyone else who was using the thesis_hook_archive_info plugin and has found their custom code no longer working!

The old hook has been removed, but don’t worry – the update is very simple, just comment out your old code and add the following, your custom_functions.php should end up a bit like:

//remove_action(‘thesis_hook_archive_info’, ‘thesis_default_archive_info’);
//add_action(‘thesis_hook_archive_info’, ‘my_function’);

add_filter(‘thesis_archive_intro’,'my_function’);

Related posts:

  1. Thesis Tutorial – Creating Custom Categories
  2. Thesis Tutorial – Creating Custom Categories
  3. How Can I Move the Thesis Navbar Below the Header?
  4. How Can I Move the Thesis Navbar Below the Header?

{ 3 comments… read them below or add one }

dev March 10, 2011 at 10:03 am

Lots of thank you for this information. :)

Craig April 11, 2011 at 8:17 pm

Hi – I’m really struggling to get this going. Not sure if I’m doing something incorrect or not. When I apply your code – with the update above – the only thing that seems to happen is the title of the category disappears from the page.

Nothing from my template seems to have and effect on the category page.

Thanks for any insight!

jezza101 April 15, 2011 at 8:07 am

What are you trying to do, add content to the top of each cat or tag page?

This functionality is now built into Thesis, you don’t need this hack anymore. Just edit your category / tag and you’ll see a text box with something like “introductory content”. Whatever you type in there will appear in your page.

But, for what it’s worth, if the cat title disappears this means you have prob activated the hook correctly but your function isn’t returning anything for it to show. At least that’s the prob I had when I first tried this!

Leave a Comment

Previous post:

Next post: