Custom social sharing buttons for Twitter, Facebook, Google Plus, LinkedIn, StumbleUpon, and Pinterest.
via http://siliconstation.com/how-develop-custom-google-plus-button/
<a class="icon-twitter" rel="nofollow"
href="http://twitter.com/"
<?php | |
/* | |
Plugin Name: Kill Trackbacks | |
Plugin URI: http://pmg.co/category/wordpress | |
Description: Kill all trackbacks on WordPress | |
Version: 1.0 | |
Author: Christopher Davis | |
Author URI: http://pmg.co/people/chris | |
*/ |
<?php | |
/* | |
* Usage for a custom post type named 'products': | |
* unregister_post_type( 'products' ); | |
* | |
* Usage for the built in 'post' post type: | |
* unregister_post_type( 'post', 'edit.php' ); | |
*/ | |
if ( ! function_exists( 'products' ) ) : |
Custom social sharing buttons for Twitter, Facebook, Google Plus, LinkedIn, StumbleUpon, and Pinterest.
via http://siliconstation.com/how-develop-custom-google-plus-button/
<a class="icon-twitter" rel="nofollow"
href="http://twitter.com/"
1. Theme Structure | |
- style file | |
style.css | |
- header section | |
header.php | |
- main section | |
index.php |
User-agent: * | |
Allow: / | |
Disallow: /cgi-bin | |
Disallow: /wp-admin | |
Disallow: /wp-includes | |
Disallow: /wp-content/plugins | |
Disallow: /wp-content/cache | |
Disallow: /wp-content/themes | |
Disallow: /feed | |
Disallow: /*/feed |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- Le styles --> | |
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> | |
</head> | |
<body> |
<IfModule mod_mime.c> | |
AddType text/css .css | |
AddType text/x-component .htc | |
AddType application/x-javascript .js | |
AddType application/javascript .js2 | |
AddType text/javascript .js3 | |
AddType text/x-js .js4 | |
AddType text/html .html .htm | |
AddType text/richtext .rtf .rtx | |
AddType image/svg+xml .svg .svgz |
<?php | |
//Add custom_pagination function in your function.php file | |
function custom_pagination($numpages = '', $pagerange = '', $paged='') { | |
if (empty($pagerange)) { | |
$pagerange = 2; | |
} | |
global $paged; | |
if (empty($paged)) { | |
$paged = 1; |
<?php | |
if ( is_page('about')) { | |
echo '<div id="secondnav">This is the super cool secondary navigation.</div>'; | |
} | |
?> |
<script type="text/javascript"> | |
// @see https://salsasupport.zendesk.com/entries/61500924 | |
window.onload = function(){ | |
var e = document.getElementById("recaptcha_response_field"); | |
if (e != null) { | |
e.setAttribute("placeholder","Type what you see"); | |
} | |
} | |
</script> |