Build Your Own Business Website header image

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

Introduction to Customizing Thesis 2.1 Using PHP – Part 14 – Example #7 – Add the Read More Link to the Excerpt

Difficulty Level -

Filed Under Topics - , ,

Listed Under Lesson Subjects -

Applies to -

Now that we’ve added excerpt length to our custom excerpt box, we're going to add the "Read More" link to the excerpt. We'll come back over here to our master.php where we wrote this "Read More". We'll copy that, come back over to box.php and add this function, public function "read more". Now, we're not

Introduction to Customizing Thesis 2.1 Using PHP – Part 13 – Example #6 – Add the Option to Set the Excerpt Length

Difficulty Level -

Filed Under Topics -

Listed Under Lesson Subjects -

Applies to -

Now that we’ve gone through how to add standard HTML Box Options, next up we're going to take a look at creating an option from scratch. In fact, the option that we're creating is the one that determines how many words are going to be shown in the excerpt. In order for us to do

Introduction to Customizing Thesis 2.1 Using PHP – Part 12 – Example #5 – Add Options with the html_options() Method

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

Now we’re going to add HTML inside of the HTML function of the custom excerpt box we just created. If we look at the structure of this HTML, it doesn't have anything around it. It's not wrapped in any div tag, it doesn't have any class assigned to it. It's going to be essentially impossible

Introduction to Customizing Thesis 2.1 Using PHP – Part 11 – Example #4 – Create a Custom Excerpt Box

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

Now that we’ve created a basic Hello World box let’s move on to example #4 where we're going to create a custom excerpt box. We're going to take this box, this is how I do it, and I create a copy of it. I’ll change the copy so instead of hello-world-1 it's going to be

Introduction to Customizing Thesis 2.1 Using PHP – Part 10 – Example #3 – Bare Bones Hello World Box

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

Now that we’ve covered the Thesis 2.1 way for customizing PHP, the Box API, we’re going to create a simple 'Hello World' box. We’ll just work in this byob custom excerpt box that we’ve been looking at so far. We’ll name it BYOB Hello World and we’ll give it a class of byob_hello_world. And then

Introduction to Customizing Thesis 2.1 Using PHP – Part 9 – The Thesis 2 Way – Box API

Difficulty Level -

Filed Under Topics -

Listed Under Lesson Subjects -

Applies to -

So let's talk about the Thesis 2 way for customizing PHP, the Box API. The fundamental concept that underlies the Thesis 2 box API is that by using it, you are creating repeatable user configurable code. This code can be used over and over and over again in many different conditions throughout the site and

Introduction to Customizing Thesis 2.1 Using PHP – Part 8 – Advantages and Disadvantages of Adding Custom Programming Using the Thesis Custom Files

Difficulty Level -

Filed Under Topics -

Listed Under Lesson Subjects -

Applies to -

There are advantages and disadvantages of adding custom programming using the Thesis 2.1 custom files which is what we've done so far. The Advantage to Typical WordPress Programming The advantage is that it uses very typical WordPress programming. If you've done any WordPress programming in the past then this is very straightforward. You understand the

Introduction to Customizing Thesis 2.1 Using PHP – Part 7 – Example #2 – Add a Read More Link to the Excerpt

Difficulty Level -

Filed Under Topics - , , ,

Listed Under Lesson Subjects -

Applies to -

Now that you know how to change the number of words displayed by an excerpt, next up what we're going to do is add a "read more" link to the excerpt instead of that little dot, dot, dot. Again, we're going to find that here in this the_excerpt page and the filter for that is

Introduction to Customizing Thesis 2.1 Using PHP – Part 6 – Example #1 – Change the Number of Words in an Excerpt

Difficulty Level -

Filed Under Topics - , ,

Listed Under Lesson Subjects -

Applies to -

Now that we've created a function using a filter hook, we're going to look at example number 1 of this Customizing Thesis 2.1 using PHP seminar. What we’re going to do is change the number of words in the excerpt. So we're going to do this by looking at this the_excerpt in the codex. And

Introduction to Customizing Thesis 2.1 Using PHP – Part 5 – Write our First Function Using a WordPress Filter Hook

Difficulty Level -

Filed Under Topics -

Listed Under Lesson Subjects -

Applies to -

That was our very first function applied to an action hook in this Customizing Thesis 2.1 using PHP seminar. Now, what we're going to do is write our very first function using a WordPress Filter Hook. A filter hook behaves very much the same here, it's a function and we're going to call it hello_world_filter

Introduction to Customizing Thesis 2.1 Using PHP – Part 4 – Write Our First Function Using a WordPress Action Hook

Difficulty Level -

Filed Under Topics -

Listed Under Lesson Subjects -

Applies to -

Now that you understand what Action Hooks and Filter Hooks are, let's go ahead and create a very first action hook. Here we are in master.php. And if you've worked in Thesis 1.8 before you're going to see this is familiar because what we're going to do is create a function essentially. So, function and

Introduction to Customizing Thesis 2.1 Using PHP – Part 3 – Introduction to WordPress Action Hooks & Filter Hooks

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

Now that you understand Thesis 2.1 custom PHP files, next we're going to talk about WordPress action hooks and filter hooks and how we'll be using them in Thesis 2.1. First, I’d like to direct your attention for a moment to the main seminar page here, Introduction to Customizing Thesis 2.1 Using PHP. Because this

Introduction to Customizing Thesis 2.1 Using PHP – Part 2 – Using the Thesis Custom PHP Files

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

So we're going to start off this Customizing Thesis 2.1 with PHP seminar by looking at the Thesis Custom PHP files. I'm going to grab up my FTP client here and we'll go to thesis2demo. So Thesis 2.1 comes with files in a couple of different locations. In the first place, it's all inside of

Introduction to Customizing Thesis 2.1 Using PHP – Part 1 – Introduction – Using Custom PHP

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

Good morning everybody and welcome to this special seminar on Customizing Thesis 2.1 Using PHP. This is an introductory seminar so for some of you this will be brand new but for others of you, I know that you have been programming in Thesis for quite a while. I'm intending to provide something that's going

Introduction to Customizing Thesis 2.1 Using PHP

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects - ,

Applies to -

With the advent of Thesis 2 most folks don’t need to muck about with PHP. Most of the typical WordPress coding that people do is easily handled with drag and drop in the Thesis Skin Editor. However, there are times when DIYers and developers alike have something they want to accomplish that can only be done using WordPress functions and PHP. This seminar introduces two methods of doing this in Thesis 2.1

How to Create File Constants in Thesis 2

Difficulty Level -

Filed Under Topics - , ,

Listed Under Lesson Subjects -

In this session we discuss how to create constants to reference skin, box and package files in Thesis 2. Thesis 2 constants can be found in thesis.php. We use WordPress and Thesis constants to create our own custom constants. Member:  How about now? Rick:  That’s better. Yes, thank you. Member:  Okay, sorry about that. Rick:

Thesis 2.0 – Where to Add Custom PHP to a Skin

Difficulty Level -

Filed Under Topics - , ,

Listed Under Lesson Subjects -

In this session we show where to add custom PHP to a skin. When a skin is uploaded it will be installed in the Thesis Theme Directory inside the wp-content folder. Skin authors will use the skin.php file while skin users will use the custom.php file. We discuss what happens to these files when both

Does Thesis 2.0 Make Hooks Obsolete?

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

In this session we answer the question, “Does Thesis 2.0 make hooks obsolete?” And, no, this is not really the case because there is  some coding that we may still want to do using hooks. Thesis 2.0 allows us to create hooks by specifying a hook name in the container which automatically then create 4