A comprehensive primer for building a WordPress-powered site in a weekend. Geared towards non-geeks.
WordPress
Change the Thesis Doctype and Add Meta Tags
I love using Thesis because it lets me focus on content, while providing all of the design and development hooks I need to tweak the theme as I see fit. I’ve dug in a good bit, and while I’m far from an expert, I’m confident that anything and everything I want to do is available to me.
One thing I discovered early is that the default doctype is XHTML Strict, which is great in many respects, but can add some complexity given enough design changes and external data sources.
In 1.6 I was able to add some custom code to change the doctype to XHTML Transitional, simplifying some issues I was having with IE 8. Those same reasons necessitated that I include a new meta tag as well. Thesis 1.7 changed the implementation methods, so I’m documenting the new, right way to modify the doctype and add items to the page head in the hope that others might find it useful.
Credit: I learned about of this from girlie, who was kind enough to point me in the right direction on the Thesis forums.
Modify the Thesis Doctype
Simply add this to custom_functions.php in your Thesis directory:
/* !Custom Doctype */
function custom_doctype() {
return '< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
}
add_filter('thesis_doctype','custom_doctype');
Adding Meta Tags or Conditional Comments
This hadn’t occurred to me as I’m used to placing these directly in the code, but once girlie pointed me in the right direction I found it is a simpler solution.
- Go to the WordPress Dashboard
- Click Thesis in the sidebar – this should open the Site Options page. If it doesn’t, click the Site Options link
- Click the plus icon for the Additional Scripts box under Document Head
- Paste your tags, conditional comments and or anything else you’d like included in the
<head>
- Click the save button and verify that it worked on your site
Thinking About Thesis?
If you’re thinking about purchasing Thesis, and I highly recommend you do, I’d appreciate it if you follow this link when you want to learn more or are ready to buy the theme.
Design, Feedback, WordPress and the Community
Chris Messina has posted a great entry discussing the problems with open source design, with a focus on the new administrative interface for WordPress 2.4, which is generating a lot of discussion now that it is partially implemented in the nightly releases. As an avid user of WordPress and occasional plugin developer, I’ve been following the discussion from afar and fully agree with Chris that it is much too early for the design to be judged.
Hopefully Chris’ points about a lack of a visible design owner will be noted and acted upon. The project needs a strong, authoritative voice that can answer the design questions, lead the discussions and gather ramblings, compliments and complaints for future revisions. I fully believe the WordPress team has all of these issues covered, they just need to communicate it a bit more and demonstrate that they have it covered. We as a community also need to trust that they know what they’re doing – we are using their software after all, and judging by the amount of sites running WordPress, and the amount of people theming and building plugins for the platform, I’d say it has a loving community.
One of the first steps to resolve this issue is purely communication. I think it incumbent on the designer/dev team/Matt to release the final approved comps of the design, if for no other reason than it eliminates the uninformed complaints and can guide the conversation towards useful feedback. If people are going to take issue with the design – and people always take issue with design changes – they should at least see the plan in full, and there’s no reason to wait for final implementation for its debut. People love WordPress, and this is a major change; humans tend to dislike change when the object being modified is something with which they are comfortable. Doubly so when the changes are unknown.
Right now, all folks see is a Frankensteinian beast where once there was a well-known friend. Assuaging the fears is as easy as a quick post of a few screen shots, and a couple of words to describe the changes.
Fixing the WordPress Theme Reset Problem
As I posted in the WordPress forums I’ve run into an odd problem – WordPress occasionally resets my theme to the default version, which is annoying to say the least. After a lot of digging, I learned that the likely culprit is a bit of code in WP meant to protect the user from bad themes, but which has had the opposite effect for me and many other users. Luckily, others have already reported the bug and filed a patch, but the fix won’t be released until the next version of WordPress (2.4), which is slated for late January.
So, I decided to go out on a limb and make the change in my local version with the expectation that the file will be overwritten when I upgrade to the latest and greatest. So, I modified one line as indicated in Changeset 6325, commenting out line 269 of wp-settings.php, which contained validate_current_theme();
.
I’m not positive that this will fix the issue, but all of the signs point in the right direction. As the fix is simple, and has been made to 2.4, I feel relatively confident that it is a safe move on my part. I’ll keep an eye on my site and post updates as needed.
Many thanks go out to the great folks constantly improving WordPress!
Update: Well, that theory didn’t last too long. When I hit the site this morning my theme had reset. Grrr.
WordPress Marketplace
Matt, the creator of WordPress, is laying the groundwork for a theme marketplace, the beginning of which he shares in his post Marketplace Idea. The idea is solid, and a step I’ve wanted to see for a while. I design and build my own themes, and will likely do so for a long time to come, but I have never built a theme to give away due to time constraints, so I’m not firmly in either target audience for the service. From this outside (though firmly in the ‘I love WordPress’ camp) vantage point I see some great benefits from this service:
- The amount of people developing themes will increase, as professionals will be able to justify the time spent on theme creation. If billable hours are important to you, knowing that you are creating a product is worth spending some unpaid time up-front.
- Following from the last point, the more professional developers and designers that are involved, the more high quality themes will be available.
- Blog themes will gain in value. While I am a big fan of giving away work, having produced a couple of small plugins and scripts myself, it is important that we establish the fact that good work is worth paying for, and great work doubly so.
- Good designs that are “retired” from a site could be put into circulation as a theme. I’ve had a couple of designs that I have replaced because I wanted something new on a site, not necessarily because the old design had any major flaws. Knowing that I could earn money, benefit others and/or gain recognition, I’d be more willing to spend some time making the small changes required to place it on the Marketplace. I’m not sure how this point relates to the requirement that the theme has not been published before.
- This is a great promotion of open source code, without sacrificing the earnings that should come from hard work.
I’m really curious to see how the pricing will play out. Will the system set a price, or a set of prices, or will each theme producer set their own? Knowing only that a subset of users will have to pay to use your theme provides an interesting twist to setting your price and deciding on how much work to put into each theme.
I’m also excited to see how people make names for themselves, building reputations with the themes they produce. This could produce a neat cottage industry, or it could reduce the value of design and development in much the same manner as the “get a whole site for $500” services that have existed for a while. The latter doesn’t worry me very much, as quality stands out, and I know quite a few top notch folks who make their living producing great work at fair prices far above the outsourced rates.
How to Include a Daily Digest of Ma.gnolia Links in Your Feeds
I’ve had a couple of folks ask me how I include a daily digest of all of my newly added Ma.gnolia links in my RSS feed, so I thought I would provide a very quick rundown.
FeedBurner is the foundation of the functionality, as it makes it very easy to harness the wealth of feeds provided by Ma.gnolia. Once you’ve signed up for the free service and set up a site, click on the Optimize tab and then select LinkSplicer in the sidebar. At that point just follow the directions they provide you and select the “As a once-a-day summary only”. Once your site is using FeedBurner to serve your feeds, the Ma.gnolia links will show up automatically each night assuming you added at least one new link to your Ma.gnolia account.
Users of WordPress should check out the FeedBurner plugin by Steve Smith, which makes the transition to FeedBurner a smooth one.