I’m involved in the production of a site and I found the need to disable WordPress’s detection of duplicate comments. While often a good idea there are times in certain use-cases to turn it off. In my case the comments system was being used to communicate back and forth with individuals over the content of a custom post type. More of a case of order processing. It worked out nicely. However it was common for us to repeat ourselves, even within the same conversation.
The only solutions I found were either editing a core WP file.(NEVER EDIT WORDPRESS CORE! Every time you do a kitten dies.) There is another solution.. several years old, that temporarily wraps the comment content in a random md5 hash. Nice trick, but that filter ends up going out in email alerts about the comment. The proper way to do it is to remove the filter that does the duplicate detection! Filters are important to understanding many of the things that happen to content like wrapping chunks of text in p tags and processing shortcodes.
Here is what I added to my theme functions.php file:
A single line in your functions.php file. Nice, eh?
I need a solid start to my theme. I’ve tried starting with twentyten, twentyeleven and twentytwelve. Not a bad place to start.. but I want to make sure I get away from the styled elements of those themes. I could start with a premium framework.. but I want something really lean and flexible. I am happy to add my own custom functions as I need them. So the starting point I selected is a starter theme: underscores. or.. ‘_S’ by Automattic. Yup.. by the same people that are behind WordPress. You won’t find Underscores in the theme archive.. it’s not a complete theme. Just the beginning of one.
For my CSS reset I’m ripping out the one used in Underscores and using Normalize.css that comes with Foundation.
I’m using Foundation for responsive layout. I’ve been using Twitter Bootstrap. What first caught my eye about Foundation was the extra control I have over the layout for narrower displays. I was ready to try something new.. but this was a great chance to learn it outside of a client project.
Here is a list of my current tools:
- Underscores by Automattic
- Foundation by Zurb
- Sass – css pre-processor(handled by Codekit)
- Codekit – for.. a bunch of stuff! can’t live without it.
- Sublimetext 2 – code editing(Solarized – dark color scheme)
- Xampp – local server for developement
- Tower – version control
- Transmit – FTP
- Browserstack for device testing
Next post: Part 3; Building the Framework.
I’m writing the mutli-part article in the hopes that it may help other designers and developers with their projects. I’ve always believed it’s about the follow-through on a project. It’s not about secret methods and tricks to get things done. It’s about hard work and well-considered decisions.
Not all themes are the same. Themes should be different because each is being build to fulfill a specific function and conform to a clients needs. For a common blog WordPress offers over 1,700 themes for free. There are also a multitude of premium themes out there that cater to many different markets. Blogs, online stores, online magazine, reviews, hobbies.. and so on.
I’m building a theme for my own website. This can be tricky.. it’s not easy being your own client. Luckily I have some guidlines in mind that should make the decisions about features a little easier. My immediate goals are:
- get the first version up quickly
- a portfolio custom post type
- demonstrate modern web design techniques
- elegant design with a solid UI
This could describe a lot of themes clients ask for. One of the primary differences is how and why I have the first item listed. There will be many iterations of my theme because the theme is going to be built to help grow my web design business. I get work through oDesk and by word-of-mouth, but I really need to start doing more to get clients directly. It may seem silly that my own website isn’t where I started in the first place.. but that is another story. There is also a common problem that I hear stated by a lot of web designers and developers. “Who’s going to pay me to build my own website?” Nobody, of course. Then you have to decide.. do I give up client work to build my own website? At some point.. we all do.
Next post: The nuts as bolts. Actually selecting parts and putting them together.