nav-left cat-right
cat-right
SQL Code For Changing WordPress URL

SQL Code For Changing WordPress URL...

Code to use for replacing urls in wordpress database: UPDATE wp_posts SET guid = replace(guid, 'http://olddomain.com','http://newdomain.com'); UPDATE wp_posts SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com'); UPDATE wp_links SET link_url = replace(link_url, 'http://olddomain.com', 'http://newdomain.com'); UPDATE wp_links SET link_image = replace(link_image, 'http://olddomain.com',...

Add a Driving Directions Form to a Website...

This code adds a small field to enter an address, plus a “Get Directions” button. The results are shown as Google Maps directions. Be sure to edit your destination address in the code. <form action="http://maps.google.com/maps" method="get" target="_blank"> <label for="saddr">Enter your location</label> <input type="text" name="saddr"...

Remove Location Bubble from Embedded Google Maps...

When embedding a Google Map into a website, you get that annoying location bubble. Sometimes you want it there. Sometimes you don’t. To get rid of it, add the following to the end of the src url. Just after: &output=embed Add: &iwloc=near
Remove Unnecessary Code From WordPress Header

Remove Unnecessary Code From WordPress Header...

WordPress uses the function wp_head() to add a bunch of code to the header of each page. Some of it is not absolutely necessary. This is especially true when using WordPress as a small business CMS, instead of a blog. The code below removes the unnecessary code. Just add these to the end of your functions.php file. This code applies to WordPress 3.0 and higher: <?php remove_action('wp_head', 'rsd_link'); remove_action('wp_head',...
CSS to Force a Scrollbar to Appear in IE8 and FF

CSS to Force a Scrollbar to Appear in IE8 and FF...

Websites sometimes appear “shift” side-to-side a bit when you go from one page to another within the same website. This is usually caused by going from a page with a scrollbar to a page without a scrollbar, and vice-versa. The scrollbar appearing and disappearing causes the page width to be slightly different, thus the shifting appearance. This is usually seen in FireFox and IE8 browsers, due to how they render...
How to Embed and Display YouTube Videos on a Secure SSL Page

How to Embed and Display YouTube Videos on a Secur...

EDIT 08/03/2010: A reader just pointed out that the method outlined in this post will present a warning in in the status bar when using the latest version of FireFox. No popups or dialog messages though – that’s good. And it still works flawlessly in IE and Chrome. Thanks to Jayapal for pointing the warning in FF. Original Post: Here is a cool trick to get rid of ssl security warning errors when embedding...