Category: Code

  • Three sliders, one option, and a few tears later

    I am not a huge fan of sliders until they are used in a decent way. The only way I sort of like them is in an image gallery but even then it has to be somewhat incorporated with a lightbox, colorbox, whatever you would like to call it. These sliders are slowly becoming a…

  • WordPress Static Front Page

    Setting up a front page is hard. So many things to think. Do you want a page of your latest writings to be what a visitor first encounters or do you want a static page? Perhaps a unique template so as to differentiate between the rest of the site?

  • Child themes are good

    Creating a child theme can go a long way. Not only can you make some minor changes but you can also extend and create more without having to lose those alterations when the parent theme gets updated.

  • Using active callbacks in the Customizer

    One thing I haven’t seen many themes use is active callbacks to their advantage. What are they and how can they used? It’s actually quite simple and there are two methods that the customizer has available. The first one is when you first create the section, panel, or control. Great! We have a section but…

  • Two or three column section

    A while back I wrote a quick and dirty tutorial on how to display more than one page. This can be done in a number of different ways. You can read about them in other tutorials and guides because this time I’ll go over another method using the WP_Query method. The codex page some really…

  • Widgets and when to use them

    Widgets are a great way of showing information in specified areas. Themes handle this in different locations and different ways. Some have page template with up to thirty widget areas. Yes, thirty! Sorry, felt like a salesman when I typed it out but it is true. And then you get the occasional theme that wants…

  • Customizer: dropdown category selection

    Using the get_categories function with the customizer can be tricky. This is a code snippet to help out.

  • Fun with template tags: header, footer, sidebar, and template_part

    Yes, does look like a lot but they all share a few things in common. Not just the fact they have a do_action before the file is loaded but they also use locate_template in order to load the file. The functions look fairly similar: The slight difference is get_template_part. Now, what’s pretty neat is that…

  • Working with the WordPress Customizer

    Recently the Theme Review Team chose to make the customizer as the format of creating theme options. I love it! Yes, I was in favor of it. I have my reasons. I know there are some people that still don’t fully grasp the customizer and most likely won’t. All good! Some take a little more…

  • Fun with template tags: comment_form

    This time I’ll focus on the comment_form(). Neat, fun and with plenty of hooks and filters. The code Like usual we will look at the core code of the comment_form. There are approximately 230 lines of code that make up this template tag. Does sound like a lot, right? Yes, but when you look a…