Remove WordPress page title header using custom CSS

If you’ve ever needed to remove the title header from a specific WordPress page you can do it using custom CSS. No additional plugins required.  Copy and past the code below updating “.page-id-###” to reflect the ID# of your post or page.

/* Enter your remark here about why you’ve added this custom CSS */
.page-id-### .page-header {
display: none;

Custom CSS for WordPress Search widget

The WordPress search form widget is seriously ugly.  This custom CSS will give you some control over the search widget only a mother could love.

.searchform input[type=”text”]{
width: 100%;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
.searchform input[type=”submit”]{
padding:5px 15px;
border:0 none;
-webkit-border-radius: 2px;
-moz-border-radius: 2px
border-radius: 2px;

Default WordPress image link URL to “file URL”

I like using the WordPress plugin “Fancybox” to add clean fly out effects to images, PDFs, and YouTube videos.  I noticed  depending on the theme I was using sometimes you would click a newly inserted image and FancyBox worked other times  it took  you to an attachments page for the image.  That’s when it hit me.  For FancyBox to function correctly the link to the image has to be set as “file URL”.  It also dawned on me that some of my themes defaulted to “file URL” while others defaulted to “attachment URL”

To set your default image link URL to “file” add the bit of code below to your functions.php file.


(Via WordPress Forum link Submitted by Adam Capriola)


Error Establishing a Database Connection with WordPress

The other day I was playing around with my wordpress  MySQL install on an Ubuntu 9.10 server.  It didn’t take long before the only thing showing up in my browser  was  “Error Establishing a Database Connection”.  Damn I had managed to mess up WordPress and it’s sweet 5 min no hassel install.  Everyplace I’d looked for help told me to review the settings in my wp-config.php file.  …and since it was my server, my wordpress, and my mySQL, I could only blame the A-hole who messed it up. Me. (more…)