Skip to content

Instantly share code, notes, and snippets.

@blueprintmrk
blueprintmrk / Sign-Up-&-Login-Form.markdown
Created August 22, 2014 02:17
A Pen by Blueprint Marketing.
<?php
if ( isset( $_SERVER['REQUEST_URI'] ) && in_array( substr( $_SERVER['REQUEST_URI'], -4 ), array( '.xml', '.xsl' ) ) ) {
remove_all_actions( 'widgets_init' );
}
@bartdevuyst
bartdevuyst / gist:95920974a397167d1010
Created June 30, 2014 06:37
Stream System Info
// Generated by the Send System Info Plugin //
Multisite: No
SITE_URL: http://www.mediadigest.be
HOME_URL: http://www.mediadigest.be
WordPress Version: 3.9.1
Permalink Structure: /%postname%/
Active Theme: OMD Media Digest 2013.4
@jdevalk
jdevalk / no-widgets-for-xml.php
Created June 4, 2014 11:49
When loading an XML sitemap, WordPress still does a number of queries for all the widgets, if I did this in WordPress SEO, do you think that'd "kill" things?
<?php
if ( isset( $_SERVER['REQUEST_URI'] ) && in_array( substr( $_SERVER['REQUEST_URI'], -4 ), array( '.xml', '.xsl' ) ) ) {
remove_all_actions( 'widgets_init' );
}
@sergejmueller
sergejmueller / ttf2woff2.md
Last active March 9, 2024 13:37
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
@sickOscar
sickOscar / browser-redirect.js
Last active October 19, 2015 23:24
WPML - browser-redirect.js - Fix
/*globals wpml_browser_redirect_params */
jQuery(document).ready(function () {
if (jQuery.cookie !== undefined) {
// Check if cookie are enabled
jQuery.cookie('wpml_browser_redirect_test', '1');
var cookie_enabled = jQuery.cookie('wpml_browser_redirect_test') === '1';
jQuery.removeCookie('wpml_browser_redirect_test');
if (cookie_enabled) {
anonymous
anonymous / Simple-Arithmetic-Expression-Evaluator.markdown
Created April 22, 2014 03:08
A Pen by Alan R. Soares.
anonymous
anonymous / A-Perfect-Minimal-iPhone-Template.markdown
Created April 22, 2014 03:05
A Pen by Stan Williams.

A Perfect Minimal iPhone Template

Haha just bored. The dimensions are almost exact, I rounded them to one decimal and converted to em units so you can scale it to any size. Horizontal version also included.

A Pen by Stan Williams on CodePen.

License.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script type="text/javascript">
function showGTitle() {
var gText1 = document.getElementById('gtext1pete').value;
var gBold1 = document.getElementById('gbold1pete').value;
var gWords1 = gBold1.split(' ');
for(var gI1=0; gI1<gWords1.length; gI1++) {
<!DOCTYPE html>
<html lang="en-EN">
<head>
<meta charset="UTF-8" />
<title>Test custom background &amp; header</title>
</head>
<body class="wordpress" itemscope="itemscope" itemtype="http://schema.org/WebPage">