{theblog}The Blog

Creating Custom WordPress Themes: Part 3: Reader Questions

Posted on 02/12/10 | Category: blog, development | Tags: , ,

This past week, we’ve talked about how to setup and brand your themes and how to have custom templates in WordPress.

Unfortunately, WordPress is such a robust system, that it’s impossible to cover everything.

So instead,  I’ve gathered up a bunch of reader questions from Twitter, Facebook and comments on the blog and am answering them as much as possible today.

So get your WordPress Q’s ready and let’s dive right in.

Thomas King: If I were to use WordPress as a solution to create a website for a realtor and I wanted to use posts to list available properties, would I be able to also use posts for news items as well?

Yes. You can sort your site posts via categories. Simply have a category for “properties” and another for “news”. You can use WordPress’s

<?php wp_list_categories(); ?>

function to display the categories in your navigation. This is how my site works with testimonials, portfolio and blog. There are also plugins to integrate your static pages with your category pages as well.

@SpicerMatthews: I struggle when it is a good time to use WP and when WP is not the right tool, Meaning as a CMS instead of just a blog.

There’s very little that I’ve found WordPress unable to handle. If you’re doing a big eCommerce site, I wouldn’t recommended any WordPress plugins, but would instead get a standalone solution. Also, if the site is huge, over 20-30 pages, I also wouldn’t recommend using WordPress. For almost everything else, it’s a great solution CMS-wise.

The important thing is to think about what the client needs. If the client just needs a regular CMS, then WordPress is great; if they need something crazy custom and they don’t have a ready-made plugin for it, you have to determine if it’s easier or more cost efficient to code your own plugin, or to just go with another CMS platform or something from scratch.

@davidledgerwood: What does a designer go through to create a WordPress theme – contrast with designing non-WP site.

Designing for WordPress is similar to designing for any site – but you already know your basic site structure.  You know you’re going to have to design around posts, widgets and other items WordPress comes with, although anything in WordPress can be removed or altered. Coding is the same way, it doesn’t really take any extra time to code a static site versus a WordPress site, but you have to factor in extra time for setting WordPress up, creating the database and time for when you’ll have to move it to the client’s site. (It’s a pain).

@mhandy1: how to set up wordpress on a subdomain? if you could point me to a beginners wordpress blog or forum that would be awesome

Setting up a subdomain works the same as setting up a regular subdomain. You’ll need to do that through your host’s cPanel. Most hosts will then create a folder for you (so blog.domain.com would actually point to domain.com/blog) and you’ll just install WordPress inside that folder. For some great places to learn WordPress, I’d recommend WPBeginner and Digging Into WordPress (they also have a great book).

@j_lyman: Where/how is the best place/way to start learning WP?

Just start playing with it. If you already know HTML/CSS/PHP, it’s super easy to learn WordPress. If you want to check out some blogs specifically for it, check out the blogs above, or also the Digging Into WordPress book. The web is a great place when you need to find a solution, but for comprehensive-learning-from-scratch knowledge, it’s best to just start doing sites with it.

@ScanMonkeys: do you ever adapt an existing theme, or do you usually start from scratch? Also, how many widgets are too many?

I normally start from scratch, with the exception of using the default theme as a framework, so I don’t have to waste time retyping the loop or header info. I have had one or two clients come to me who had purchased a pre-made theme and wanted it installed and customized, but that’s rare.

As for widgets, no one can really tell you how much is too much. It all depends on the widgets you use. Most places I’ve seen say not to have more than 15-20 or it will start slowing your site down. I’ve got 15, bust most are backend stuff that doesn’t affect the site’s performance, like the SEO plugin, XML sitemaps and so forth.

Brett is there only one css file or multiple css files that are to be changed for layout/design related

@tbbbdj916: I noticed some templates have a custom homepage that isn’t set through the admin panel. How is this achieved? Most that I have noticed this on are using WP as a CMS and not just a blog. What are your thoughts on the Thesis Theme?

Right, this is how my homepage is set up. The homepage is controlled by the index.php template, if the user doesn’t set a static page through the admin panel. Originally, this page displays your newest posts and your sidebar and that’s it. You don’t have to have this though. If you only want your newest posts in a small section (like my From the blog section) you can move that over with some coding and CSS. Or you can take out the loop and code the index page like you would any other index page. You just wouldn’t have a page that displayed all your new posts on the site. (Although you can accomplish this by using categories or making a whole other loop)

As for Thesis Theme, stay AWAY and save your money. Despite what they say, the code is not more user-friendly, cleaner or better for SEO than a high quality developer could produce. In fact, they change the whole structure and things are more complicated. Yes, the admin area allows you to control the theme better, but that’s the only advantage to it. I billed a client for a 5 minute change that took over an hour and a half, because Thesis makes it a pain to do any custom dynamic work. Please, stay away!

Brett: is there only one css file or multiple css files that are to be changed for layout/design related?

In WordPress you HAVE to have style.css with the identification on the top (what we talked about in Part 1: Identify Your Theme). You don’t have to use that stylesheet if you don’t want to after that, but you might as well since you have to have it anyways. You can break up the stylesheets and have multiple ones as well, but you’ll have to manually link to them in the header file. Most themes place their main CSS in style.css, and if the theme offers multiple color options, will have a stylesheet for each color.

Any other WordPress Questions?

Leave a comment with your question and I’ll answer them!

All Parts to Creating Custom WordPress Themes

Main photo by 姒儿喵喵

TwitterFacebookStumbleUponDiggDeliciousRedditGoogleTechnorati
About the author
Amber Weinberg specializes in clean and semantic XHTML, CSS and WordPress development. She has over 10 years of coding experience and is pretty cool to work with. Amber is available for freelance work, so why not hire her for your next project?.

Related Posts You Might Like

20 Comments

  1. Great answers Amber!!

    I was recently wondering about the Thesis theme. It is good to see another person’s comments on it.

    Ashley

  2. Bill says:

    Hey Amber! Thanks for answering my questions. I learned a few things from this series and your answer above cleared up everything! My thoughts are the same on Thesis. I got hired to make a few “minor” changes on a blog. Billed incorrectly due to it running Thesis. What I thought was going to be 30 minutes work, turned into a 2 hour learning session coupled with an hour of work.

  3. Jason says:

    Thanks for the info on Thesis. That could be an article for you to write.

    How To Use Custom Coding vs Thesis.

  4. Mike says:

    Curious why not ask.

    Do you run WP through out your site including the portfolio display on your front page and other pages to keep them updated or do you use another cms system and/or application?

  5. Lucian says:

    Nice to see others opinions but I don’t really agree that wordpress is not good for large websites. 20-30 pages actually is not that huge. With page tree plugin, you can get a nice overview of the pages and trust me, WordPress can handle more than that. I agree if is something very custom is better to use expression engine or similar. If is ecommerce cs-cart or corecommerce are good options.

    • You’re right, you can definitely run larger sites on WordPress, however I’ve seen performance issues with sites running with a huge amount of pages. You have to have a really good server so the DB doesn’t slow down, and most clients don’t want to pay for that, so I always suggest a regular CMS if it has to be that large. But honestly, I haven’t yet had a client that couldn’t use WordPress.

  6. Jacob says:

    I’m totally new to WP, and am I correct in that if I wish to play with themes/results etc. I need to d/l MAMP on my local machine (a Mac) to do this? I want to mess with things without a hosting service for now.

  7. DinoThemes says:

    Great Q & A article. Bookmarked for future reference ;)

  8. Jerry B says:

    Hi Amber (And Everyone)-

    Do you have any favorite books you’d recommend on theming WP?

Leave a Reply




Copyright © 2010 Amber Weinberg. All rights Reserved. Please don't steal, it's really not cool! But if you'd love to work with me (you do don't you?), please contact me :)