Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html>
<head>
<title>Find some zen</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
@Mason8r
Mason8r / wp_head_cleanup.php
Created October 19, 2015 13:25
Wordpress will include a lot of stuff in the header and footer that's just not required. Especially stuff for comments when this theme doesn't support them. This kills them dead.
/**
*
* Wordpress will include a lot of stuff in the header and footer
* that's just not required. Especially stuff for comments when
* this theme doesn't support them. The below kills them dead.
*
*
**/
remove_action('wp_head', 'print_emoji_detection_script', 7 );
remove_action('wp_print_styles', 'print_emoji_styles' );
//I have a simple 'regcode' form that posts to 'direct'
Route::get('direct', function() {
return View::make('direct');
});
Route::post('direct', function() {
$data = Input::all();