Tom McFarlin

Software Engineering in Web Development, Backend Services, and More

Page 301 of 433

Add a Custom Wrapper To The WordPress More Tag

Most of the popular CSS frameworks that are available today offer some sort of grid system for us to use such that we can arrange our content in rows and columns. This is advantageous for a number of reasons, the least of which is not for aiding responsive design.

When it comes to WordPress, one of the most common elements that authors will use is the `more` tag.

Just as there are times where we may want to indicate that a class has (or doesn’t have) a `more` tag, we may also want to wrap the tag in a row with columns on either side of the tag.

This gives us flexibility in styling the tag not only by helping to place the text by using columns and/or offsets, but also by taking advantage of a grid in the context of responsive design.

Continue reading

Happy Thanksgiving!

Today is an official holiday in the United States, so I’m taking the day off of the usual routine.

For those of you who are in the United States and are celebrating Thanksgiving, I hope you guys have an awesome day hanging out with your family, friends, eating, sleeping, and generally enjoying the day off.

Happy Thanksgiving 2013!

Happy Thanksgiving, guys!

Continue reading

Should We Delete Old Repositories?

Anyone that does design or development (or even writing, really) as either a hobby or for a living knows that feeling of going back and looking at their old work – and cringing.

We know that we’re making progress in our work when we look at something we once did and think “What was I doing?”

The funny thing is, whatever we’re designing, developing, or writing today is going to be treated that way sometime in the not-so-distant future, right?

I digress on that point.

Anyway, for me, one of the things that I find myself debating is how long I should keep some of my open source code repositories around.

Continue reading

Add a Post Class in WordPress: The More Tag

WordPress’ `post_class` function makes it really easy to write out a variety of class names to post containers that give us a finer-level of control when working on styling WordPress posts.

But there are times in which you may want to actually add a custom class to a post (or to a single post) depending on the nature of the content of the most.

And sure, you can easily add additional parameters to the `post_class` function, but those are still static parameters that will be applied to every posts.

What about in cases where you want to add a class if, say, no more tag is present in the content?

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑