Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tenman
tenman / genericons.css
Created February 26, 2014 09:40
Enough theme Quick Fix: echough / genericons / genericons.css
/**
Genericons Helper CSS
*/
/**
* The font was graciously generated by Font Squirrel (http://www.fontsquirrel.com). We love those guys.
*/
@tenman
tenman / test.html
Created February 19, 2014 00:29
soft hyphen and wbr element
<h3>soft hyphen</h3>
a&shy;b&shy;c&shy;d&shy;e&shy;f&shy;g&shy;h&shy;i&shy;j&shy;k&shy;l&shy;m&shy;n&shy;o&shy;p&shy;q&shy;r&shy;s&shy;t&shy;u&shy;v&shy;w&shy;x&shy;y&shy;z&shy;a&shy;b&shy;c&shy;d&shy;e&shy;f&shy;g&shy;h&shy;i&shy;j&shy;k&shy;l&shy;m&shy;n&shy;o&shy;p&shy;q&shy;r&shy;s&shy;t&shy;u&shy;v&shy;w&shy;x&shy;y&shy;z&shy;a&shy;b&shy;c&shy;d&shy;e&shy;f&shy;g&shy;h&shy;i&shy;j&shy;k&shy;l&shy;m&shy;n&shy;o&shy;p&shy;q&shy;r&shy;s&shy;t&shy;u&shy;v&shy;w&shy;x&shy;y&shy;z&shy;a&shy;b&shy;c&shy;d&shy;e&shy;f&shy;g&shy;h&shy;i&shy;j&shy;k&shy;l&shy;m&shy;n&shy;o&shy;p&shy;q&shy;r&shy;s&shy;t&shy;u&shy;v&shy;w&shy;x&shy;y&shy;z&shy;a&shy;b&shy;c&shy;d&shy;e&shy;f&shy;g&shy;h&shy;i&shy;j&shy;k&shy;l&shy;m&shy;n&shy;o&shy;p&shy;q&shy;r&shy;s&shy;t&shy;u&shy;v&shy;w&shy;x&shy;y&shy;z&shy;
<h3>wbr element</h3>
a<wbr />b<wbr />c<wbr />d<wbr />e<wbr />f<wbr />g<wbr />h<wbr />i<wbr />j<wbr />k<wbr />l<wbr />m<wbr />n<wbr />o<wbr />p<wbr />q<wbr />r<wbr />s<wbr />t<wbr />u<wbr />v<wbr />w<wbr />x<wbr />y<wbr /
@tenman
tenman / gist:9061406
Created February 17, 2014 23:29
using anchor points with Raindrops Theme
<h2>Select Box</h2>
<div class="color-3 pad-m corner">
<form>
<select onChange="top.location.href=value">
<option value="http://tenman.info/labo/snip/archives/4577#first">first</option><option value="http://tenman.info/labo/snip/archives/4577#second">second</option><option value="http://tenman.info/labo/snip/archives/4577#third">third</option>
</select>
</form>
</div>
<h2 id="first">First</h2>
@tenman
tenman / test.php
Created February 14, 2014 00:05
Raindrops grid post layout example
<?php
/*
* Template Name: test
*/
if ( ! defined( 'ABSPATH' ) ) { exit; }
global $rsidebar_show, $raindrops_document_type;
get_header( $raindrops_document_type );
do_action( 'raindrops_pre_'.basename( __FILE__) );
raindrops_debug_navitation( __FILE__ );
?>
@tenman
tenman / functions.php
Created February 13, 2014 09:44
comment link at posted_in for Raindrops theme
<?php
add_filter( 'raindrops_posted_in', 'my_add_comments' );
function my_add_comments( $posted_in ) {
return $posted_in. raindrops_comments_link();
}
function raindrops_comments_link() {
@tenman
tenman / blur.html
Created December 27, 2013 09:25
background blur
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-script-type" content="text/javascript">
<meta http-equiv="content-style-type" content="text/css">
<title>背景にblurをかけてぼかす</title>
@tenman
tenman / grid-post.php
Created December 16, 2013 00:26
Grid posts template for WordPress theme Raindrops
<?php
/**
* Template Name: Grid Post
*
*
*/
if ( ! defined( 'ABSPATH' ) ) { exit; }
do_action( 'raindrops_'. basename(__FILE__) );
$raindrops_current_column = raindrops_show_one_column( );
@tenman
tenman / test.php
Created December 4, 2013 09:54
date, title, custom field value pagenate
<?php
/**
* Template Name: test category
*
* WordPress Static Page Template
*/
?>
<ul style="text-align:left">
<?php
@tenman
tenman / gist:7224661
Last active December 26, 2015 22:39
full width home.php template for WordPress Raindrops theme.
<!DOCTYPE html>
<html <?php language_attributes( ); ?>>
<head>
<meta http-equiv="content-type" content="<?php bloginfo( 'html_type' );?>; charset=<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
global $raindrops_link_unique_text;
@tenman
tenman / gist:6821293
Created October 4, 2013 05:20
Hi donshapiro Please replace your functions.php Raindrops functions.php for ver1.135 home page shows excerpt.
<?php
/**
* functions and constants for Raindrops theme
*
*
* @package Raindrops
* @since Raindrops 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;