A variation of the dynamic text effect created for the website at cryca.com
A Pen by Pali Madra on CodePen.
<!DOCTYPE html> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<html lang="{block:English}en{/block:English}{block:French}fr{/block:French}{block:German}de{/block:German}{block:Japanese}ja{/block:Japanese}{block:Italian}it{/block:Italian}{block:Spanish}es{/block:Spanish}{block:Polish}pl{/block:Polish}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<title> | |
{Title} |
# Typography | |
## Headings | |
Headings from `h1` through `h6` are constructed with a `#` for each level: | |
``` markdown | |
# h1 Heading | |
## h2 Heading | |
### h3 Heading |
<!-- /* Remove version number from wordpress generated source and RSS feed. | |
http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/ | |
*/ --> | |
<!-- /* remove this from header.php remove version from generated page source */ --> | |
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> | |
<!-- /* or add this to functions.php to remove version from generated page source */ --> | |
<?php remove_action('wp_head', 'wp_generator'); ?> |
# Filename-based cache busting | |
# taken from https://github.com/h5bp/html5-boilerplate/ | |
# This rewrites file names of the form `name.123456.js` to `name.js` | |
# so that the browser doesn't use the cached version when you have | |
# updated (but not manually renamed) the file. | |
<IfModule mod_rewrite.c> | |
Options +FollowSymlinks | |
RewriteEngine On |
<?php | |
// http://johnford.is/programmatically-pull-attachments-from-wordpress-posts/ | |
// http://www.wprecipes.com/how-to-show-wordpress-post-attachments | |
// get all of the images attached to the current post | |
function _get_images($size = 'thumbnail') { | |
global $post; | |
$photos = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); |
A variation of the dynamic text effect created for the website at cryca.com
A Pen by Pali Madra on CodePen.
The Colorize option changes the nature of the Hue/Saturation control. | |
When checked, it removes the color from an image and overlays the image with a tint of a single hue and saturation. | |
Each pixel's luminosity remains unchanged (actually, it is changed, but very little). | |
With the Colorize option, the Hue and Saturation values are no longer relative numbers based on an offset from a starting point. | |
Instead, they are absolute numbers. | |
The Hue value ranges from 0° to 360° and represents an absolute position on the color wheel (0° and 360° are the same color; red) | |
The Saturation value ranges from 0% to 100%. | |
If Saturation is changed to 0%, color will be negated and the pixels will go gray. | |
Using Hue/Saturation to colorize an image is not the same as making a duo tone. |
// Edit themes functions.php. Right after initial <?php line place the following: | |
update_option('siteurl','http://example.com/blog'); | |
update_option('home','http://example.com/blog'); |
<?php | |
/* Merge multiple RSS feeds with SimplePie | |
* | |
* Just modify the path to SimplePie and | |
* modify the $feeds array with the feeds you want | |
* | |
* You should probably also change the channel title, link and description, | |
* plus I added a CC license you may not want | |
* | |
* Help from: http://www.webmaster-source.com/2007/08/06/merging-rss-feeds-with-simplepie/ |
<!--- | |
Author: Pali Madra | |
URL: http://palimadra.tumblr.com | |
Description: Cheat sheet for markdown on stackedit.io at http://www.stackedit.io | |
Version: 1.0 | |
Last updated: 10/26/2014 | |
---> | |
<!--- HEADING ---> | |
# Header 1 # |