Need a WordPress website this weekend? Start here...

DIY WordPress: Styling The Author’s Byline In WordPress Journalist Theme In 3 Steps

(Reading time: 3 – 4 minutes)

Give the author byline more punch

Give the author byline more punch

The WordPress Journalist is an excellent theme for anyone wanting to use a blog to deliver a lot of information with a minimum amount of fuss.

Part of what makes Journalist such a good theme is that it’s easy for WordPress beginners to modify in simple, powerful ways. For example, moving the author’s byline from below the post to above the post is very simple.

But the default author styling is too plain. Let’s add a little punch to it using a bold font, as shown in the screenshot above.

WARNING: Make a fresh backup before poking around in theme files.

Add font format class to style.css

CSS styling for post author

CSS styling for post author

We’ll need to either 1. find an existing class in the Journalist style sheet, or 2. create a new, custom CSS class just for ourselves. I’m going to save you some time here… I poked around in the Journalism style.css file, and I didn’t find anything useful for simple author byline formatting.

Since we want to restyle the author’s byline, let’s make it really easy and create a CSS class called “theauthor.” Here’s how:

  1. Click on “Appearance >> Editor” in your sidebar menu. This will open in the style.css file.
  2. Scroll to the bottom of style.css
  3. Add this formatting, also shown in the screenshot:
    1
    2
    3
    
    span.theauthor {
       font-weight: bold;
    }

That was easy! Now, we need to add the styling information to each page template in the theme.

Add class to page templates

As noted in “Moving The Author’s Byline In WordPress Journalist Theme,” 5 files need to be modified: archive.php, single.php, index.php, search.php and page.php. Below is a screenshot of what this looks like in your theme editor:

Add styling information to the page templates

Add styling information to the page templates

As you can see, it’s pretty easy. Just wrap the_author() tag with the span, here’s what the code looks like:

1
<span class="theauthor"><?php the_author() ?></span>

Again, easy business. Make sure to add the span to all 5 files, and check to make sure everything works. If you make a mistake, it will break your website, and you will notice. So will everyone else. It’s not hard, just take care. This is why you did a backup before you started, right?

Is there more you want to do with the author information? There’s more I’m going to do. Stay tuned.

Three Ways to Handle Technical Chores For Your WordPress Blog

(Reading time: 2 – 3 minutes)

Here’s three ways to handle CSS, styling and programming chores for your WordPress blog:

  1. Use the default layouts, and just twiddle with the easy stuff like font sizes. That’s pretty much what I do. Then again, I’m not a visual designer and I’ve been programming way too long to much care.

    It’s not uncommon for programmers to be a little slack in this respect. I’m personally much more concerned about how well my code is designed.

  2. Pay someone to do exactly what you want. This easier said than done, unless you have a fair bit of experience with technical communication. Here’s some guidelines:
    • Western programmers are expensive but a good one will “do what you want” rather than doing what you tell them to do. This is a good thing. If you have little technical experience and little outsourcing experience, you will probably save a lot of time and money by hiring out domestically, by which I mean USA, Canada, Western Europe.
    • Eastern Euro programmers can be less expensive, may well “do what you want,” might do what you tell them to do instead. Roberto Koci in Serbia has done absolutely superb work for me in the past. He’s not always available, get him when you can.
    • Indian and Chinese programmers can be very inexpensive. However, they may do EXACTLY what you tell them to do… which is highly unlikely to be what you actually want. You can get lucky here, there are superb programmers in Asia, but you’re going to have to work at finding the right person. I have no problem outsourcing to such teams because I can chunk the work down into small, tightly defined units.
  3. Suck it up and teach yourself CSS. You will save time and money in the long run by being able to spec your outsourcing much better. It’s not that hard anyway.
Hey! You're in the middle of the Website In A Weekend eCourse. Learn how to create and operate a complete WordPress-based website in a single weekend. Start here: Website In A Weekend: Friday Evening - Off to the Races. (If you already have a blog... "audit" the eCourse... you'll find plenty to do.)

You can also split the difference. Have an expensive person spec it out for inexpensive implementation. I’m available for this kind of work, and I’ve done it very successfully in the past.