Posts

Showing posts with the label wordpress

​ WordPress performance: 17 things to do right now

Image
​ WordPress has a low barrier to entry and encourages experimentation, which are both good things for developers. But once a WordPress site is up and running, you need to get it running fast enough to keep Google happy. Luckily WordPress performance is easy to get started with: there are quite a few quick things you can do to improve the performance of vanilla WordPress installs. Check your loops first for expensive code . Optimization-wise, loops are low-hanging fruit. Use GLPTimer , cache grind, or similar to find bottlenecks. Focus on the WordPress loop and any other big loops. Minimise SQL calls inside loops: see #2. For other stuff commonly seen inside loops see #7 and #15. Start caching lookup data . Pre-fetch all the results you need in a single query, and store them in a single array. Optimize the query so it only selects the columns you actually need. For example: say for each post you also want to look up some taxonomy term names a...

How to Remove HTML Tags from WordPress 3.x Comment Box

This tutorial is going to guide you how to get rid of the html code under the message box in the WordPress twenty ten’s comment template. First a warning, do not edit or delete the code from WordPress 3.x core files, instead hide it with CSS code. Using CSS has the advantage of not requiring core file modifications (always a bad idea). Put simply, you need to add the following line of code to the your Theme style sheet. .form-allowed-tags { display:none; } So, using the   WP Twenty ten   theme as an example, here are the steps: 1. Login to your WordPress dashboard 2. Go to Appearance/Editor. 3. Open the stylesheet file, style.css. It will be listed at the bottom of the right-hand column. 4. Go to the end of the style.css style sheet and enter the code on a new line: .form-allowed-tags { display:none; } 5. Save the file (Update File button) and you’re done. 6. And that’s all there is too it. If you now inspect your comment box the offending HTML Tags will have gone.