Wordpress Technology

Wordpress Tips, Tutorials, Hacks

Posts Tagged ‘wordpress tip’

Remove Symbol [...] From Post Excerpt

If in the current WordPress template the announcements are outputed by the_excerpt() function and the excerpt field is not filled, than we can watch the symbol [...]. In order to get rid of this symbol, you would only need to insert next code in the functions.php of your theme.

Replace [...] By Link ‘Read More’

Should you need to replace [...] by link ‘Read More’, you would only need to create next function in ‘popular’ functions.php file.

Highlight Last Post

There may be a need for a special appearance of the first post (for example, when you need to make a completely different design from the other posts), whether the main page, the archives, search, etc. This problem is solved by adding the special CSS-class with a simple PHP-code. Initially, we have next standard wordpress […]

Add Content to RSS Feed

Code for inserting your own content to every RSS Feed of WordPress based blog is very simple It can be usefull for inserting ads or banners. Include the code must in functions.php of your theme.

Exclude Categories From RSS

If for some reasons we have to exclude one or several categories from RSS, it can be done this way. Insert into functions.php next code.

Posted in WordPress Hacks

Comments Off

Display Excerpt With Fixed Number of Words

We might have a situation, when we need to display the excerpt with the fixed number of world. To achieve that, create the next function in functions.php of the current theme:

Add Post Name to Body Class

Sometimes doing the css layout, we need to assign the specific class name to the body tag. To achieve the task, the only thing you have to do is to copy the following code and paste it on your theme functions.php file. Once saved, the post/page name will be automatically be added to the body […]

How to Add a Favicon to WordPress Blog

Find the famous functions.php file of the current theme and insert next code in it. You are done. Sweet and simple. Don’t forget to change the favicon url. If the wp_head() function is not implemented the code will not work. Have fun!

Posted in WordPress Tips

Comments Off

© 2009 | Made by Vancouver Web Design | Internet Marketing