- 浏览: 849841 次
- 性别:
- 来自: lanzhou
文章分类
最新评论
-
liu346435400:
楼主讲了实话啊,中国程序员的现状,也是只见中国程序员拼死拼活的 ...
中国的程序员为什么这么辛苦 -
qw8226718:
国内ASP.NET下功能比较完善,优化比较好的Spacebui ...
国内外开源sns源码大全 -
dotjar:
敢问兰州的大哥,Prism 现在在12.04LTS上可用么?我 ...
最佳 Ubuntu 下 WebQQ 聊天体验 -
coralsea:
兄弟,卫星通信不是这么简单的,单向接收卫星广播信号不需要太大的 ...
Google 上网 -
txin0814:
我成功安装chrome frame后 在IE地址栏前加上cf: ...
IE中使用Google Chrome Frame运行HTML 5
The Beginner's Guide to Tricking Out Your WordPress Blog
- 博客分类:
- Tips&Tricks
You took the leap and installed WordPress to host your own blog because you want complete control over how it looks and works. Now, it's time to power it up, lock it down, and make your blog completely yours.
What You're In For
With all the hype around cloud computing and no-configuration-required hosted services, you don't hear about the joys of running great software on your own server very much. The fact is, if you're just a casual user who doesn't know if you'll stick to blogging over the long haul, or if you don't want to spend a little time maintaining WordPress, you should sign up for a hosted blog at WordPress.com or Blogger or TypePad. (Also, this tutorial is not for you.)
But if you're willing to keep WordPress updated religiously, you get access to a whole world of WP plug-ins that add features to your site, the opportunity to create and tweak custom WordPress themes, and a huge sense of accomplishment. In the most recent version of WordPress, keeping your installation up-to-date is a matter of clicking a link when you get notified to do so.
Everything you need to know about installing WordPress is right here. Got it up and running? Let's get to customizing.
Initial configuration
The first thing you want to do on your WordPress blog is set up a new author with administrative access. Don't use the default "admin" user to write your posts; create your custom username and give it admin privileges. Then, log out of WordPress and back in as your new username. For security reasons, some folks like to delete the admin user completely (as some WordPress attacks have used it to do bad things to your blog). Once you've got your administrative account working, add other authors to the list of users who might be posting to your blog.
Now it's time to cruise through WP's settings area and configure things just how you like 'em. First, set up your post permalinks to look prettier for both humans and search bots. WordPress' default post permalink looks like http://example.com/?p=123
. Instead, under Settings>Permalinks, select something like http://example.com/2009/09/welcome-to-my-blog
.
Next up, configure how you want comments to work on your blog. Under Settings>Discussion, you can enable comments and set other advanced options, like whether or not users have to be logged into your site to comment, or if comments should automatically close on posts after a certain number of days, if user avatars show up, or what words in a comment should automatically mark it as spam.
Speaking of, spam comments is a ridiculously epic problem across the internet for all blogs, so how you set up comments will mean the difference between miserable hours spent gardening V14gRa and "check out my sexy webcam!!" comments or not. Coming from Lifehacker's "must register to post here" model, I checked off "Users must be registered and logged in to comment." If you don't want to put up the registration hurdle in front of your commenters, make sure you install the Akisment spam-killing plug-in (more on that below).
Must-have plug-ins
Just like you can extend Firefox with feature-adding extensions, WordPress also has a pluggable architecture and a whole world of plug-ins that can soup up your blog. When you're logged into WordPress, click on Plugins, and search for the name of the plug-in you want to install (which you can do without involving your FTP client). You can also just search on keyword, too—to find Twitter related plug-ins, just enter Twitter. The plug-ins that you use will depend on how you want your site to work and look, but here are a few that every WP user can benefit from.
WordPress Database Backup (Backup): Running your own server and database means that if things go wrong, it's up to you to have a backup. This plug-in can email a full backup of your WordPress database on a schedule to an address you specify. I've had great success building my WordPress site locally with the backup this plug-in created; however, the other resident WP expert here on staff, The How-To Geek, recommends using the old-school cron job for "mysqldump -uUser -pPassword databasename > filename.bak"
approach. No matter how you do it, make sure you're backing up both your blog's database and files. It's worth consulting with your blog hosting provider about the best way for you to do this, too.
FD Feedburner Plug-in (Feeds): Google-owned FeedBurner is a must-use for anyone who publishes RSS feeds, like your blog does. FeedBurner saves you bandwidth costs by hosting your blog's feed and offers statistics about how many people are reading it; this plug-in will redirect your blog's feed to FeedBurner for you.
WordPress.com Stats (Stats): See what posts are most popular using this up-to-the-minute statistics plug-in, right inside your WordPress dashboard. WordPress.com stats doesn't count visits to your own blog, and unlike the richer Google Analytics service, there's no day-long delay to see what's happening on your site. To run this plug-in, you have to get a WordPress.com API key (it's free) and enter it into the plug-in's settings.
Search Meter (Stats): If you have a search box on your site, you'll want Search Meter, a plug-in which shows you what readers are looking for and finding (or not) on your site. Search meter also offers widgets you can add to your site which show readers what other readers are searching for.
WP SuperCache (Optimization): The first time a highly-trafficked site like Digg links to your blog, you'll wish you had installed this plug-in, which maintains high-speed, database-call free "cached" copies of your WordPress pages on your server. Your site will run faster and won't buckle under the strain of a lot of traffic if you're caching it with this excellent plug-in.
Akismet (Comments Spam killer): Because comment spam can get so bad, WordPress now ships with the Akismet spam filtering plug-in. Since I'm requiring user registration to leave comments on my WordPress blog, I don't have any experience with how good Akismet is (and haven't had any spam at all), but word on the street is it's absolutely essential for sites with open comments. Like WordPress.com stats, Akismet requires a WordPress.com API key.
Finally, to make your site as accessible to Google and other web search engines as possible, a few Search Engine Optimization SEO plug-ins help. I use All in One SEO Pack and Google XML Sitemaps.
Make Your WordPress Theme Yours
If you've got HTML and CSS chops, you can make your WordPress theme sing your tune. (For advanced stuff, some PHP skills come in handy, too.) First you want to start with a base theme. WordPress' default theme is ok, but if you google "free WordPress themes" or take note of what themes sites you like already use, you'll find an insane number of gorgeous and eye-catching site layouts. Picking your theme is one of the most fun (and most time-consuming) parts of setting up WordPress. It will be hard to choose!
Once you've installed the theme you want by downloading the .zip file and putting it in your WordPress themes folder, you can dig into the CSS and markup and make it your own. WordPress offers a theme editor in its interface which lets you update files on the fly (under Appearance>Editor). While this is convenient, it's also dangerous if you hit the wrong key, save the file, and don't have a backup. My recommendation is to set up WordPress and your theme of choice on your own computer, edit it in your favorite text editor, and upload it to your live server when it's perfect. I started my WordPress blog with Lucian Marin's Journalist theme, and made it mine by adding color to the header and tweaking how comments look.
If you've got patience and custom HTML you want to turn into a brand new WordPress theme, copy the default theme's files into a new folder and get to hacking. The WordPress Codex is an invaluable resource for both starter reading and reference as you go. That is, when you get to the part where you're thinking "WTF is wp_list_comments?", Google it and you'll find the function reference at the codex. It took me a full weekend of pretty intense theming work to get my first custom theme done and ready to go live, so give yourself some time, and most importantly, have fun with it. Here are some tips and links from my Twitter followers on creating a custom WordPress theme.
Sidebars and Widgets, Oh My!
The easiest way to customize your WordPress blog without digging into code or your FTP client is to do so with widgets. The latest versions of WordPress offer drag-and-drop custom modules you can add to and remove from your blog. When you're logged into WordPress' admin interface, under Appearance, click on "Widgets" to see what's available and add and remove what you want on your site's sidebar (or top bar or bottom bar, depending on where your theme puts it).
Advanced trickery
Here are a few more tips for advanced WordPress hackers who want to troubleshoot or try even more customization:
- Use multiple custom sidebars: WordPress' sidebar and widgets feature is very powerful and customizable; in fact, you can create and customize multiple sidebars or site zones to show up on different pages. (For example, the sidebar that shows up on a post page can look different than the one on the front page.)
- Troubleshoot slowness and other problems with Firebug: Every web developer knows that the Firebug Firefox extension is absolutely essential when developing any site, and it's true for WordPress, too. When my WP site went down because of multiple background 404's doing resource-sucking searches, Firebug revealed the problem and so I knew how to fix it.
-
Use tags to display content differently: You can use conditional tags to display different types of content on your blog in different ways, like a short link or big photograph. I use
has_tag
to display "quick links" with smaller inline headlines on my front page by assigning the tag "brief." - Set up a "staging" server: Once your blog's up and running and live, you don't want to make huge changes to it with the whole world watching. Set up WordPress on your local computer, hack away on your theme and/or plug-ins, then upload your changes when they're complete and ready.
This post only scratches the surface of WordPress customization possibilities. The good news is WordPress' open nature and huge community means that you can find the answer to almost any WP question hitting up Google—or in worst case, asking the forums. Special thanks to the author of this CSS Tricks post who also writes the excellent Digging into WordPress blog, which I referenced for this post.
What did I miss? What are your favorite WordPress tricks, hacks, themes, plug-ins, security measures, and widgets? Shout 'em out in the comments.
Gina Trapani, Lifehacker's founding editor, loves herself a little WordPress hacking. Her weekly feature, Smarterware, appears every Wednesday on Lifehacker. Subscribe to the Smarterware tag feed to get new installments in your newsreader.
发表评论
-
十八个绝招把你从压力中营救出来
2010-03-08 10:34 990面对目前的工作与生活,你是否感觉到快要被逼疯了,来自工作的,家 ... -
Chrome扩展页面无法访问的解决办法
2010-03-03 09:04 1304Google推出Chrome扩展页面后有些中国的网友可能访 ... -
程序员礼仪小知识
2010-02-28 18:37 932常用应酬语: ... -
How GitHub Works
2010-02-22 07:53 755Ryan wrote a really great comme ... -
XXXX对80后的30个忠告
2010-02-09 11:10 7781、一个年轻人,如果 ... -
汇总Windows7系统常见5个问题和解决方法
2010-01-27 10:08 9621、DVD音频问题 微软改进了Windows7的硬件 ... -
MHDD找不到硬盘的解决方案
2010-01-27 09:48 4548硬盘要接在SATA0和SATA1上, 只认两个通道. 并且 ... -
NetBeans中文乱码解决办法
2010-01-15 07:56 2222在Windows 和Linux(Fedora/Ubuntu/ ... -
时间管理的6条黄金法则
2009-11-22 06:52 1124“时间就是金钱,效 ... -
从15个小动作猜准上司心思
2009-11-22 06:44 966察言观色是一切人情往 ... -
Fixing Poor MySQL Default Configuration Values
2009-11-15 13:24 948I've recently been accumulating ... -
100 Terrific Tips & Tools for Blogging Librarians
2009-11-14 09:43 2223As you prepare for a career as ... -
基本交际用语
2009-11-10 13:04 776日常生活中少不了要面对各种各样的场景和形 ... -
送你一副巧嘴——实用交际用语
2009-11-10 13:02 1650送你一副巧嘴 现代中 ... -
职场红人必读超级商务英语句子
2009-11-09 23:29 8581 I've come to make sure tha ... -
7 Things To Do After Installing Windows 7
2009-11-09 08:38 8391. Reinstall 7 if you purchased ... -
做个给WIN7减肥的批处理的想法,方便去实施
2009-11-08 09:34 2418首先 开启 Administrator 用户 删除其他用户!这 ... -
Windows 7超级实用的快速操作技巧
2009-11-08 07:35 985如果你已经升级到 Window ... -
使windows7更好用,10个很有用的Win7技巧
2009-11-08 07:29 1216没错,这些都是Windows 7带给我们的新东西,而且你很有必 ... -
电脑利用firefox模拟访问WAP版网站
2009-11-05 11:27 4694最近由于一些项目的原因,需要使用手机访问一些wap网站,从而参 ...
相关推荐
The Beginner's Guide to IDAPython 6.0 - Alexander Hanel.pdf,The Beginner's Guide to IDAPython 6.0 - Alexander Hanel.pdf,The Beginner's Guide to IDAPython 6.0 - Alexander Hanel.pdf
the beginner's guide to idapython 中文版
The Beginner's Guide to IDAPython 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系...
The Beginner's Guide to IDAPython v.5.0.pdf. The Beginner's Guide to IDAPython v.5.0 The Beginner's Guide to IDAPython v.5.0
The book focuses on using SQL to find the story your data tells, with the popular open-source database PostgreSQL and the pgAdmin interface as its primary tools.You'll first cover the fundamentals of ...
"A Beginner's Guide to Pointers" 《A Beginner's Guide to Pointers》是关于C++和C指针问题的详细指导。指针是编程语言中的一种基本数据类型,它们的存在使得程序可以更加灵活和高效。指针的概念很重要,许多程序...
C Programming Absolute Beginner's Guide
《Linux The Complete Beginner's Guide (2016)》是一本针对初学者的Linux入门书籍,由Arthur Fyrus Aqil撰写,并于2016年出版。这本书的目标读者是那些对Linux操作系统完全没有经验的用户,内容覆盖了Linux的基础...
Learn the ins and outs of Responsive Web Design to make web pages look great on all devices NEW! Become familiar with the command line, Git, and other tools in the modern web developer’s toolkit NEW...
Learning Processing: A Beginner's Guide to Programming Images, Animation, and Interaction 2nd Edition pdf Learning Processing, Second Edition, is a friendly start-up guide to Processing, a free, open-...
Based on their extensive experience with teaching R and statistics to applied scientists, the authors provide a beginner's guide to R. To avoid the difficulty of teaching R and statistics at the same ...
MicroPython for the Internet of Things A Beginner's Guide to Programming with Python on Microcontrollers 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊...
This PLC tutorial explains everything you need to know to ...The “Beginner’s Guide to PLC Programming” makes learning ladder logic easy with our online plc training. And it is written in plain English
Absolute Beginner Guide To C;写给大家看的C语言书
Even though it can be challenging to get beyond the basics and build the site that meets your needs perfectly, this book will guide you through it all. Completely updated for Joomla! 3, this ...
Java A Beginner's Guide(6th) 英文无水印pdf 第6版 pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系...