Skip to content

Instantly share code, notes, and snippets.

@psteinweber
psteinweber / functions.php
Last active January 3, 2016 18:29
#wordpress #thesis move nav below header
/* ==========================================================================
Move nav below header
========================================================================== */
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header', 'thesis_nav_menu');
@psteinweber
psteinweber / wordpress-bloginfo-url.php
Created January 19, 2014 09:56
#wordpress bloginfo url link
<a href="<?php bloginfo( 'url' ); ?>/path" title="">
@psteinweber
psteinweber / wp-config.php
Last active January 3, 2016 16:09
#wordpress Set custom URL in wp-config.php (as described here: http://codex.wordpress.org/Changing_The_Site_URL#Edit_wp-config.php )
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
@psteinweber
psteinweber / Fade-in share buttons.css
Created January 13, 2014 08:56
This small gist allows creating "Share buttons" (or something else) which fade in and while the content is in the viewport.
.post-sharing-side {
position: fixed;
top: 50%;
right: 50%;
margin-right: -530px;
}
@psteinweber
psteinweber / Auto click to tweet.css
Last active January 2, 2016 22:29
#twitter #jquery This jquery snipped appends a "Click to tweet" button (font-awesome icon in this case) into every blockquote on the page. Created as a replacement for bulky "Click to tweet" wordpress plugins.
blockquote a:before {
content:"\f099";
font-family: FontAwesome;
margin-left: 10px;
}
/*--------------------------------------------------*/
/* remove byline from page */
/*--------------------------------------------------*/
function custom_body_class($classes) {
if (is_page()) {
$classes[] .= 'hide_meta';
}
return $classes;