WordPress Widget: Register a New Widget

WordPress makes registering new widgets and sidebars a pain in the ass. Thankfully I have already been kicked in the ass and found you a solution. The following code goes into functions.php. The only text you need to worry about changing is the Sidebar Name and the sidebar_name...
Continue reading »

WordPress Excerpt: Extend the Length

Here’s how to extend the excerpt length of a post. Change 100 to desired length. 1 2 3 4 5 // Extend the excerpt  length function excerpt_length_extended($length) { return 100; } add_filter( 'excerpt_length', 'excerpt_length_extended', 999 );
Continue reading »

WordPress: Highlight the Author’s Comment

Want to highlight the post author’s comments and make it stand out from all others? One simple way to do it is to apply a CSS class to the admin’s comment post and then style away. Add this to your theme’s functions.php file and then style as needed:...
Continue reading »

WordPress Comments: Open Comment Links in New Window

If you don’t want visitors leaving your site every time someone clicks on a link in a comment you can apply this code to your theme’s functions.php file. 1 2 3 4 5 // Open Comments in New Window // function comment_new_window ($comment_text) { return str_replace('<a', '<a target="_blank"',...
Continue reading »

WordPress Admin: Text Editor Too Wide

I had an issue with the admin post box editor going way too wide and ended up behind the Publish and Categories area. This happened when I installed plugins that added to the  TinyMCE editor therefore pushing the editing area too wide and I couldn’t see what I...
Continue reading »

RSComments : Change Captcha Field to Numbers Only

Client wanted RSComments (Version 1.0.0) captcha to show only numbers. Open: components -> com_rscomments -> helpers -> securimage -> securimage.php Go to about line 457 to $this->charset Change: 1 $this-&gt;charset = 'ABCDEFGHKLMNPRSTUVWYZabcdefghklmnprstuvwyz23456789';   To: 1 $this-&gt;charset = '0123456789';  
Continue reading »