Posts Tagged ‘wordpress tip’
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.
Should you need to replace [...] by link ‘Read More’, you would only need to create next function in ‘popular’ functions.php file.
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 […]
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.
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.
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:
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 […]
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!