Build Your Own Business Website header image

custom_functions.php

How to Convert Code from Thesis Open Hook to a Custom Function

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

In this session we show how to convert code from Thesis Open Hook to a custom function by creating a function for the nav menu add_action thesis_hook_after_header that will take the code as a function and place that code in exactly the same spot as it was. We also show how to clean the code

Lesson 9 – Part 2 – Anatomy of the Thesis custom_functions.php file

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

The next thing we’re going to talk about is the Thesis theme custom_functions.php file. This is using Thesis 1.8.4 and this is the NetBeans IDE version 7.0.1 and I’ve opened up my custom functions file in that. Your custom functions file has a couple of different elements. It starts off with this opening php tag.

The Most Basic WordPress PHP Functions

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

We open the custom_functions.php file and go through two of the most basic WordPress PHP functions, add_action and remove_action. We use the example of removing our Thesis Nav Menu from it’s out of the box location above the header and add it back below the Header. We also discuss the what the custom.css file and

Troubleshooting custom_functions.php

Difficulty Level -

Filed Under Topics - , , , ,

Listed Under Lesson Subjects -

Anyone learning how to customize their Thesis website using PHP also needs to learn how to troubleshoot errors in their code.  In this video I teach my 6 rules for preventing and finding errors in your custom_functions.php file.  I also describe the work flow that I use when writing custom code for my own Thesis