Tag: functions.php

Hiding certain posts from the homepage

[ No Comments ] Posted on July 27, 2010 under WordPress tweaks

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.

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

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

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.

Changing WordPress post excerpt length

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

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.

Putting external link icon in WordPress

[ No Comments ] Posted on January 30, 2010 under Cascading Stylesheet (CSS), WordPress tweaks

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.

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

[ 2 Comments ] Posted on December 15, 2009 under WordPress tweaks

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..

Making all internal links www or non-www in WordPress

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

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

Removing nofollow from WordPress comments

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

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.

Excluding certain categories in WordPress post category list

[ No Comments ] Posted on December 2, 2009 under WordPress tweaks

The categories where a particular post belongs are usually listed somewhere in the post page, usually under the post title. For administrative or some other reasons, you want to assign posts to a particular category but you do not want your site visitors to see this category. This is how you prevent one or more category from showing up in the post page.

« Previous Entries