Basic HTML5 starter template with HTML5 Shiv for older IE browsers.
HTML
<!doctype html>
<html lang="en">| document.getElementById("button").addEventListener("click", function(e) { | |
| e.preventDefault(); | |
| var url = this.getAttribute("href", 2); | |
| createFloodlightTag("source", "type", "cat", function() { | |
| window.location = url; // Redirect the user after the tag successfully fires | |
| }); | |
| }); | |
| function createFloodlightTag(source, type, cat, callback) { |
| <?php | |
| /** | |
| * Custom page titles for Guest Authors with WordPress SEO | |
| * Returns "[author name]'s articles on [site name]" | |
| * | |
| */ | |
| add_filter('wpseo_title', 'my_co_author_wseo_title'); | |
| function my_co_author_wseo_title( $title ) { | |
| <?php // only copy this line if needed | |
| /** | |
| * The use of this snippet requires at least WooCommerce 3.2 | |
| */ | |
| /** | |
| * Alter the column headers for the orders CSV to split item_meta into separate columns | |
| * | |
| * Note that this change is only applied to the Default - One Row per Item format |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20150227 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |
| function replace_open_sans() { | |
| // Kill the original style | |
| wp_deregister_style('open-sans'); | |
| // Replace it with your own (just as an example, I included only the 300 weight) | |
| wp_register_style( 'open-sans', 'http://fonts.googleapis.com/css?family=Open+Sans:300' ); | |
| wp_enqueue_style( 'open-sans'); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'replace_open_sans' ); | |
| // Thanks to @timkinnane | |
| add_action( 'admin_enqueue_scripts', 'replace_open_sans' ); |
| /** | |
| * Extend Recent Posts Widget | |
| * | |
| * Adds different formatting to the default WordPress Recent Posts Widget | |
| */ | |
| Class My_Recent_Posts_Widget extends WP_Widget_Recent_Posts { | |
| function widget($args, $instance) { | |
| <h2>Contact Me</h2> | |
| <address class="vcard"> <!-- replace address tag with div if used to contact anyone other than site owner --> | |
| <h3 class="fn">John Doe</h3> | |
| <p><a class="email" href="mailto:[email protected]">[email protected]</a></p> | |
| <p class="tel">123-456-7890</p> | |
| <ul class="adr"> | |
| <li class="street-address">123 Street Name</li> | |
| <li class="locality">City</li> | |
| <li class="region">State</li> | |
| <li class="postal-code">12345</li> |