To do 301 Redirects with GoDaddy Hosting, go here. If you ever change the url, slug, or Permalink of an article in WordPress, make sure to do a 301 redirect in the .htaccess file on your server. If you fail to do a 301 redirect, 2 things can happen: 1. The article loses any page … Read more →
Page 31 - Code Snippets and Tutorials
So you want to add text inside your boring, old search form (a.k.a. search box). This javacsript will let you add a few words inside the search form. Those words are called “placeholder text.” The words will appear in the input field of the search form. When the input field of the search form is … Read more →
There is no excerpt because this is a protected post.
Override the WordPress image-upload settings that allow you to choose to link an image to it’s full-size file url or to an attachment page (Post URL). This code will force all images in your posts to be linked to their original file. This is useful if you use WordPress for clients who don’t want to … Read more →
WordPress themes come with a comment form at the bottom of posts, asking visitors to “Leave a Reply.” You may want to change the wording of “Leave a Reply” because it’s boring. This is very easy to change without a plugin (no plugin! But see below this section if you prefer to do it with … Read more →
Here is the easiest and quickest way to change the length of the excerpt without a plugin in WordPress. The post excerpt is normally 55 words long. You change this by pasting some lines of code into the functions.php file of your WordPress theme. Take the following code: Make the following changes: on line 2, … Read more →
If you’re making your own WordPress theme or template, sometimes you need to show something different for posts of one specific category. You may want to display different text or a different picture (within the loop), or even call a different header or different template file altogether (outside the loop) for a certain category. This … Read more →