Tag: functions.php

Detecting mobile devices for your WordPress website

This PHP code will allow you to detect if your website is being accessed using a mobile device. If being accessed by a mobile device, your server can automatically present an alternative layout without changing the URL of your website.

no thumbnail yet

[ No Comments ] Posted on August 30, 2011 under Designing for Mobile Devices, WordPress

WordPress: Hiding certain posts from the homepage

Create a special category and insert a code in the functions.php of your theme to prevent some posts from appearing in your homepage. Works only if you configured your homepage as list of latest posts and not as static page.

no thumbnail yet

[ 2 Comments ] Posted on July 27, 2010 under WordPress

Modifying the bracketed ellipsis [...] at the end of post excerpt

When WordPress used the first few (usually 55) words of the post content as post excerpt, by default it will end with a bracketed ellipsis like this [...]. Do you want to remove it or replace it with some other characters or symbols? Here’s how.

no thumbnail yet

[ No Comments ] Posted on January 31, 2010 under WordPress

Changing WordPress post excerpt length

If you leave the excerpt form blank, WordPress will use the first 55 words of your post content as post excerpt. You think 55 words are too long or too short? This is how you can change it.

no thumbnail yet

[ No Comments ] Posted on January 31, 2010 under WordPress

Putting external link icon in WordPress

Allow your website visitors to determine whether a link is internal or external by modifying your WordPress theme so that it automatically inserts a small graphic to any external link in your website’s content.

no thumbnail yet

[ 4 Comments ] Posted on January 30, 2010 under Cascading Stylesheet

Making all external links open in a new tab or window in WordPress

Insert a PHP code in the functions.php of your WordPress theme to make all internal links open in new window or tab and all internal links on the same window without having to manually set the target window in your WordPress visual editor..

no thumbnail yet

[ 13 Comments ] Posted on December 15, 2009 under WordPress

Making all internal links www or non-www in WordPress

Make all of your internal links consistently with or without www without having to edit all of them one by one.

no thumbnail yet

[ No Comments ] Posted on December 12, 2009 under WordPress

Removing nofollow from WordPress comments

WordPress automatically insert rel=”nofollow” attribute to all links that are in the comment. Would you like to reward your loyal visitors and intelligent comment posters? Give them some link love by removing the nofollow tag.

no thumbnail yet

[ No Comments ] Posted on December 4, 2009 under WordPress

« Previous Entries