Build Your Own Business Website header image

WordPress Constants

Part 3 – Replace Hard Coded URLs with WordPress Constants

Difficulty Level -

Filed Under Topics - , , ,

Listed Under Lesson Subjects -

Applies to -

We just created a custom template with a custom header for the Genesis Theme but the code we used is, well, crappy. And that’s because it is absolutely hard coded which means it's not portable so we’re going to make some changes to it now. What we want to do is use some WordPress constants

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:

Lesson 1 – Part 6 – WordPress and Thesis Constants and File Locations

Difficulty Level -

Filed Under Topics - , ,

Listed Under Lesson Subjects -

Applies to -

The last thing I want to talk about here today are WordPress and Thesis constants and file locations. A constant is a term that stands in for a URL so in this case, WordPress has a bunch of constants like get_stylesheet_directory and get_template_file_path and stuff like that. It's got these constants that you can use

Lesson 2 – Part 4 – WordPress Constants and File Locations

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

The next thing we're going to talk about is WordPress Constants and WordPress File Locations. A constant is essentially an alias for the address of a file. When you are creating plugins or creating themes, you run into this issue where obviously, you need the plugin or the theme to be portable so you can't