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

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', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
?>

This code applies to WordPress versions before 3.0:

<?php
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'adjacent_posts_rel_link');
?>

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 pages.

So as a web developer, how do you fix this? Simple. Add this single line to your css:

html { overflow-y :scroll }

This forces a non-active scrollbar to appear on pages that would otherwise not need a scrollbar.