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/"
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 | |
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> |
add_action( 'wp_head', 'cyb_add_search_box_schemas' ); | |
function cyb_add_search_box_schemas() { | |
if ( is_front_page() && (int) get_query_var( 'paged', 0 ) < 1 ) { | |
// Add schemas site markup for Site Name and Site Link search box. | |
// See https://developers.google.com/structured-data/slsb-overview | |
// and https://developers.google.com/structured-data/site-name | |
$searchbox = [ | |
'@context' => esc_js( 'http://schema.org' ), | |
'@type' => 'WebSite', |
<?php | |
//Add a custom admin dashboard welcome widget | |
function custom_dashboard_widget() { | |
echo '<h1>Welcome to your new WordPress site built by an awesome developer</h1>'; | |
} | |
function add_custom_dashboard_widget() { | |
wp_add_dashboard_widget('custom_dashboard_widget', 'Integrity Welcomes You To WordPress!', 'custom_dashboard_widget'); | |
} | |
add_action('wp_dashboard_setup', 'add_custom_dashboard_widget'); |