Nowadays I use the technique I describe in this Q: Steps to Take to Hide the Fact a Site is Using WordPress?.
Before that, I used the Roots Theme method, which is what I think you are looking for:
This post contains information on how to clean up WordPress code output. The methods described below do not prevent actual fingerprinting and shouldn’t be looked at as any sort of security measure.
Note that it doesn't work in Multisite or Child Themes.
I'll reproduce here the documentation I did for using the Roots method:
Modifying .htaccess
Rewrite Rules
Large chunk of code directly from the Roots theme:
https://gist.github.com/4336843 PasteBin mirror.
The array $roots_new_non_wp_rules
has to be adapted accordingly.
Refresh permalinks
Go to /wp-admin/options-permalink.php
and click Save Changes.
Load scripts from CDN and not from /wp-includes/
add_action( 'wp_enqueue_scripts', 'wpse_76593_scripts_custom' );
function wpse_76593_scripts_custom() {
wp_deregister_script('jquery');
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', false, '1.7.1', true);
wp_enqueue_script( 'jquery' );
}
Search the theme for all style and script registers and enqueues.
style.css
- create a new file inside the folder "/css" named "style.css"
- open the theme's
style.css
- select all declarations bellow the theme file header
- cut and paste in the file
/css/style.css
save both
in short: /your-theme/styles.css
will contain only the header information, and /your-theme/css/styles.css
will contain all the styles
- change all occurrences of
url('fonts/
with url('../fonts/
- change all occurrences of
images/
with ../images/
header.php
Change the stylesheet link from
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
to
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/style.css" />
All theme files
Search for:
get_bloginfo('template_url')
get_bloginfo('template_directory')
and replace with:
get_template_directory_uri()
Testing
Not sure about other browsers, but Safari Activity Window is perfect to check all loaded files and its URLs.
Depending on the theme complexity, extra steps have to be taken.