Skip to content

Instantly share code, notes, and snippets.

@scottwyden
scottwyden / AddTo-Style.css
Last active December 11, 2015 11:38
Print CSS for Photocrati Dynamic CSS Option
@media only print
{
body:after { content: "Please consider the environment and don't waste paper."; }
#sidebar, #menu_wrapper, #nav-below, #respond {display: none;}
}
@scottwyden
scottwyden / gallery-download.php
Created June 7, 2013 18:15
NextGEN Gallery Voting & Download Template
/*-----NAVIGATION-----*/
.menu ul li ul {
border-top: 2px solid #000;
}
/*-----SIDEBAR------*/
.widget-area ul ul li { /*removes bottom-border only*/
border-bottom: 0px;
}
.widget-area ul ul li { /*returns list back to bullet style*/
define('PHOTOCRATI_ALL_GOOGLE_FONTS', TRUE);
add_action( 'init', 'register_cpt_recommends' );
function register_cpt_recommends() {
$labels = array(
'name' => _x( 'Recommends', 'recommends' ),
'singular_name' => _x( 'Recommends', 'recommends' ),
'add_new' => _x( 'Add New', 'recommends' ),
'add_new_item' => _x( 'Add New Recommends', 'recommends' ),
'edit_item' => _x( 'Edit Recommends', 'recommends' ),
@scottwyden
scottwyden / Photocrati Theme - Enable All Google Fonts
Last active December 24, 2015 00:29
Photocrati Theme - Enable All Google Fonts
define('PHOTOCRATI_ALL_GOOGLE_FONTS', 'TRUE');
@scottwyden
scottwyden / NGG Image Browser Description
Created November 11, 2013 14:56
NextGEN Gallery Image Browser Description
.ngg-imagebrowser-desc p {
font-weight: bold;
}
#branding .description {
display: none;
}
@scottwyden
scottwyden / Jetpack Share CSS with Font Awesome
Created December 18, 2013 22:50
Font Awesome must be in use on the website for icons to show.
/*
Jetpack Sharing
---------------------------------------------------------------------------------------------------- */
div.sharedaddy div.sd-block {
border: none;
padding: 0;
}
div.sharedaddy .sd-content {
[ngg_images gallery_ids="1" display_type="photocrati-nextgen_pro_masonry" size="180" padding="10"]