The beauty of WordPress® is its flexibility. There are many simple ways to tweak your WordPress site to enhance your visitor’s experience. Here are just a few of Go Daddy Technologist +Gabe Williams' favorites:

Automatically Update Your Copyright Notice -

Add this code to your footer to automatically update the copyright each year.

Copyright &copy; <?php echo the_date('Y'); ?> Website Name

Redirect back To Referring Page After Login -

This simple snippet added to your functions.php file will redirect members back to the page they logged in from.

if ( (isset($_GET['action']) && $_GET['action'] != 'logout') || (isset($_POST['login_location']) && !empty($_POST['login_location'])) ) {
add_filter('login_redirect', 'my_login_redirect', 10, 3);
function my_login_redirect() {
$location = $_SERVER['HTTP_REFERER'];

Change Admin logo -

To change the admin logo that is shown on the top left side of the page, add this to your functions.php template. This gives you an easy way to brand your WordPress site for registered users.

function custom_admin_logo() {
echo '<style type="text/css">
#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
add_action('admin_head', 'custom_admin_logo');


Move Your wp-content Folder -

Almost all WordPress sites are set up the same. A great way to discourage hackers is to move your wp-content directory to a new location. Just specify where you moved your folder in your wp-config.php file.

// full local path of current directory (no trailing slash)
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'].'/another-folder-or-location/wp-content');

// full URI of current directory (no trailing slash)
define('WP_CONTENT_URL', '');

// full local path of current directory (no trailing slash)
define('WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'].'/another-folder-or-location/wp-content/plugins');

// full URI of current directory (no trailing slash)
define('WP_PLUGIN_URL', '');

Disable Directory Browsing -

Unless you specifically need it, always disable directory browsing on your site. Add this to your .htaccess and you will be set.

# disable directory browsing
Options All –Indexes

Use .htaccess To Blacklist Users And Bots -

If you are using any analytics program, you should be able to see if you are getting spammed by certain IPs. You can easily block them by adding this to your .htaccess.

order allow, deny
allow from all
deny from
deny from
deny from


Center Your WordPress Website -

This little trick is extremely useful since you never know what resolution your viewer’s devices will be set at.

margin:0 auto;

CS Sticky Footer -

This is a super common request. Because often times your WordPress site and content is dynamic, you never know just how long the page will be. This code helps ensure your footer will display at the bottom of the page, just add to your stylesheet.

* {margin:0;padding:0;}

/* must declare 0 margins on everything, also for main layout components use padding, not
vertical margins (top and bottom) to add spacing, else those margins get added to total height
and your footer gets pushed down a bit more, creating vertical scroll bars in the browser */

html, body {height: 100%;}

#wrap {min-height: 100%;}

#main {overflow:auto;
padding-bottom: 150px;} /* must be same height as the footer */

#footer {position: relative;
margin-top: -150px; /* negative value of footer height */
height: 150px;

/*Opera Fix*/
body:before {

This needs to be added to the head section of your page so that it displays correctly on Internet Explorer.

<!--[if !IE 7]>
<style type="text/css">
#wrap {display:table;height:100%}


Add to HTML.

<div id="wrap">

<div id="main">



<div id="footer">


^+James Roberts
Shared publiclyView activity