This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* add this to the functions.php file in your theme to disable fb comments open graph metadata | |
*/ | |
add_filter('fbc_og_tags', '__return_false'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.fb-comments, .fb-comments iframe[style] { | |
width: 100% !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add this to your theme's functions.php file | |
//Modify the function to add the custom field value you are looking for | |
add_filter('sharepress_og_tags', 'my_sharepress_og_tags'); | |
function my_sharepress_og_tags( $og ) { | |
global $post; | |
$custom_value = get_post_meta($post->ID, 'your custom field name', true); | |
$og = array_merge($og, array( | |
'og:title' => $og['og:title'] . " " . $custom_value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add this to your theme's functions.php file | |
//Modify the function to add the custom field value you are looking for | |
add_filter('sharepress_og_tags', 'my_sharepress_og_tags'); | |
function my_sharepress_og_tags( $og ) { | |
global $post; | |
$stripped_quotes = str_replace( '"', '', $og['og:title'] ); | |
$og = array_merge($og, array( | |
'og:title' => $strip_quotes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('select[name*="user_map"]').each(function(idx, el){ | |
var $select = jQuery(el), | |
$parent = jQuery(el).parent().parent(), | |
$strong = $parent.find('strong'), | |
name = $strong.text().split(' (')[0].trim(), | |
val = $select.find('option').filter(function () { return jQuery(this).html() == name; }).val(); | |
if ( val !== undefined ) { | |
$select.val(val); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server.get('/*', function(req, res, next) { | |
var fullURL = req.protocol + "://" + req.get('host') + req.url; | |
//your 301 redirects | |
var redirects_301 = { | |
'http://thinkingandmaking.com/working/92/72-questions-to-ask-on-your-first-day': '/view/72-questions-to-ask-on-your-first-day', | |
'http://thinkingandmaking.com/working/92/someother': '/view/someother' | |
} | |
//check and see if there is a redirect, if so, redirect to it! | |
if (redirects_301[fullURL]) { | |
res.redirect(301, redirects_301[fullURL]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swap": { | |
"your_dtString": { | |
"current": 12000, | |
"max": 234234 | |
}, | |
"your_dtString": { | |
"current": 12000, | |
"max": 234234 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swap": { | |
"your_dtString": { | |
"current": 12000, | |
"max": 234234 | |
}, | |
"your_dtString": { | |
"current": 12000, | |
"max": 234234 | |
} |
OlderNewer