Skip to content

Instantly share code, notes, and snippets.

[ngg_images gallery_ids="1" display_type="photocrati-nextgen_pro_masonry" size="180" padding="10"]
For CSS
.attachment-thumbnail {
float: left;
padding: 10px;
}
For functions.php
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action=“http://custom-mailchimp-action-link.com“ method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div class="mc-field-group">
<label for="mce-FNAME">First Name </label>
<input type="text" value="" name="FNAME" class="" id="mce-FNAME">
</div>
<div class="mc-field-group">
<label for="mce-LNAME">Last Name </label>
/* Header Widget Styling for Custom CSS */
#header-widget {padding-top:10px;text-align:center;}
/* Header Widget function for functions.php */
function register_header_widget() {
register_sidebar( array(
'name' => 'Header Widget',
@scottwyden
scottwyden / NextGEN Pro Proofing Star Color CSS
Created December 15, 2014 14:02
NextGEN Pro Proofing Star On-Page Color CSS
.ngg-trigger-proofing.ngg-proofing-on:hover {color: #ef8dcd !important;}
.ngg-trigger-proofing.ngg-proofing-on {color:#ef009b !important;}
@scottwyden
scottwyden / gist:c9dd0cef2eec6f99c1e7
Last active August 29, 2015 14:11
Social Follow Icons in Header with Font Awesome
<div id="social-header">
<a title="Google Plus" href="http://plus.google.com/+ScottWydenKivowitz" target="_blank" rel="nofollow"><i class="fa fa-google-plus" ></i></a> <a target="_blank" rel="nofollow" title="Facebook" href="http://facebook.com/scottwydenimagery"><i class="fa fa-facebook" ></i></a> <a title="Twitter" target="_blank" rel="nofollow" href="http://twitter.com/scottwyden"><i class="fa fa-twitter" ></i></a> <a title="Instagram" target="_blank" rel="nofollow" href="http://instagram.com/scottwyden"><i class="fa fa-instagram" ></i></a> <a title="Pinterest" target="_blank" rel="nofollow" href="http://pinterest.com/scottwyden"><i class="fa fa-pinterest" ></i></a></div>
@scottwyden
scottwyden / gist:295e7a470e6efef1958c
Created December 15, 2014 19:29
Social Follow Icons in Header with Font Awesome
/* Social Header */
#social-header .fa-google-plus { padding:4px;color: rgba(222,77,57,0.98);font-size: 25px;}
#social-header .fa-google-plus:hover {background:none;color:#1571f0;}
#social-header .fa-google-plus:before {padding-bottom: 14px;width: 25px; height: 25px;text-align: center;}
#social-header .fa-facebook {padding:4px 12px;color:#fff;color: rgba(60,90,153,0.98);font-size: 25px;}
#social-header .fa-facebook:hover {background:none;color:#1571f0;}
#social-header .fa-facebook:before {padding-bottom: 14px;width: 15px; height: 25px;text-align: center;}
#social-header .fa-twitter {padding:4px;color:#fff;color: rgba(0,175,238,0.99);font-size: 25px;}
#social-header .fa-twitter:hover {background:none;color:#1571f0;}
#social-header .fa-twitter:before {padding-bottom: 14px;width: 25px; height: 25px;text-align: center;}
@scottwyden
scottwyden / NextGEN Pro Lightbox Cache Whitelist
Last active August 29, 2015 14:11
Pages to be whitelisted from external caching for the NextGEN Pro Lightbox
/nextgen-pro-lightbox-load-images/*
/nextgen-share/*
If WP Engine
^/nextgen-share/(.+)
^/nextgen-pro-lightbox-load-images/(.+)
@scottwyden
scottwyden / gist:9e609b0673b5f5645bac
Created February 18, 2015 14:05
Random Order Pro Slideshow of Specific Galleries
* Random Order Pro Slideshow of Specific Galleries (limited to 50 images)
[ngg_images source=random_images container_ids='1,2,6' display_type=photocrati-nextgen_pro_slideshow images_per_page=1000 order_by='rand()' maximum_entity_count=50]
Server must support the rand() function
@scottwyden
scottwyden / gist:ad1a38aa6d5599f52797
Created March 27, 2015 13:48
Photocrati Theme Attachment Page Mod
<div class="entry-content">
<div class="entry-attachment">
<?php if ( wp_attachment_is_image( $post->id ) ) : $att_image = wp_get_attachment_image_src( $post->id, "large"); ?>
<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->id); ?>" title="<?php the_title(); ?>" rel="attachment"><img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a>
</p>
<?php else : ?>
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" title="<?php echo wp_specialchars( get_the_title($post->ID), 1 ) ?>" rel="attachment"><?php echo basename($post->guid) ?></a>
<?php endif; ?>
</div>
<div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt() ?></div>