Web hosting control panel - 456 CHAPTER 16 CHANGING THE LOOK OF
456 CHAPTER 16 CHANGING THE LOOK OF YOUR BLOG Go ahead and make a similar change to the call to the recent comments plug-in, as shown in Listing 16-14. Listing 16-14. Additional PHP Function in index.php to Protect Against Errors with the c2c_get_recent_comments Function
- %comment_author% on %post_title%
“); ?>
- You will be pleased to hear that there is no need to take the same kind of precautions with the special rssLinkList tag embedded in your posts or pages. The technology WordPress uses to process special tags is more sophisticated than simply executing PHP code. In fact, you can t execute PHP code in a post (although there are plug-ins that allow you to do this). Instead, the tags are simply ignored if the plug-in is disabled or not installed. Also, you don t need to add this kind of testing around WordPress s built-in template functions. As these are core to WordPress, they will always be there. If they are not there, you have a broken installation, and a lot more things will break! Cleaner CSS In making the RSS feed links, the contribute links, and the latest comments links look the same, you have duplicated the same CSS style rules. CSS allows you to be somewhat cleverer than that. Rather than have three separate rules, you can give all three sections the same HTML class, and then have a single set of style rules applied to all three. Listing 16-15 shows the duplicated CSS that needs to be removed. Listing 16-15. The Duplicated CSS Rules to Be Removed from style.css ul.rsslinks { list-style-type: none; margin:0; padding-left: 10px; } ul.rsslinks li { margin-top: 4px; margin-left: 1em; text-indent: -1em; }
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.