Skip to content

Instantly share code, notes, and snippets.

Scott Wyden Kivowitz scottwyden

Block or report user

Report or block scottwyden

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@scottwyden
scottwyden / css
Created Mar 14, 2018
NextGEN Gallery Thumbnail Expanding
View css
.ngg-gallery-thumbnail img{
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.ngg-gallery-thumbnail img:hover{
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
View gist:ed6e1c178aab261c6791ac0e40aa505b
### Keybase proof
I hereby claim:
* I am scottwyden on github.
* I am scottwyden (https://keybase.io/scottwyden) on keybase.
* I have a public key whose fingerprint is 94B2 4579 72C8 DC58 EF51 E6E9 E850 C8DE 3947 55E8
To claim this, I am signing this object:
View Full #AskGaryVee Question
The question I had included in the #AskGaryVee book was cut off from the original.
People have asked what the full question was. Here it is:
"I've been using Instagram with strategic tagging, hashtags and also using the profile URL
in order to drive some potential print sales. I've also been manually reaching out to local
stores that might be interesting in hanging my photos. Do you have suggestions for me and
other photographers about other ways to drive local print sales?"
@scottwyden
scottwyden / gist:9d0a6b274c71bc65d033
Created Dec 10, 2015
Display 1 Random Image With NextGEN Gallery
View gist:9d0a6b274c71bc65d033
[ngg_images gallery_ids="1,3" display_type="photocrati-nextgen_basic_singlepic" sort="rand()"]
@scottwyden
scottwyden / gist:73676bb8b07eb2fb7a70
Created Oct 2, 2015
Another 5 CSS Snippets to Customize NextGEN Gallery
View gist:73676bb8b07eb2fb7a70
/** Pro Grid Album Caption */
.nextgen_pro_grid_album > div > a.caption_link {
font-family: courrier;
}
/** Center NextGEN Widget images in Sidebar - the key is to set a specific width */
div.ngg-widget.entry-content {
width: 200px;
margin-left: auto;
margin-right: auto;
@scottwyden
scottwyden / gist:fbc9cfd4e425a5a60f3b
Created Oct 2, 2015
5 More CSS Snippets to Customize NextGEN Gallery
View gist:fbc9cfd4e425a5a60f3b
/** Increase the default trigger icon sizes */
.fa-shopping-star::before,
.fa-shopping-cart::before,
.fa-share-square::before,
.fa-comment::before {
font-size: 20px;
}
/** Reduce space between Album title and number of photos */
.ngg-album-compact h4 .ngg-album-desc {
@scottwyden
scottwyden / gist:aad7e5f9eed3e3130f3d
Created Oct 2, 2015
5 CSS Snippets to Customize NextGEN Gallery
View gist:aad7e5f9eed3e3130f3d
/** Left align and set maximum width for ImageBrowser display */
.ngg-imagebrowser { max-width: 600px; float: left; margin-right: 10px; }
/** Highlight active image (read: stage image) in NextGEN Pro Lightbox carousel */
.galleria-image.active { border: 10px white solid; }
/** Add border and drop-shadow to slideshows */
.slideshow object { border: 10px black solid; box-shadow: 10px 10px 5px red; }
/** Customize the colors of the proofing start icon trigger */
@scottwyden
scottwyden / Clickjacking—The Most Widely Overlooked Web App Vulnerability?
Created Aug 11, 2015
Snippet example for an article at Pivot Point Security
View Clickjacking—The Most Widely Overlooked Web App Vulnerability?
<style id="antiClickjack">body{display:none !important;}</style>
<script type="text/javascript">
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
</script>
@scottwyden
scottwyden / gist:9555926ae344d3e8f512
Created Mar 27, 2015
Photocrati Theme Attachment Page Mods in Functions.php
View gist:9555926ae344d3e8f512
// Attachement Page Modifications
add_action('generate_rewrite_rules', 'attachment_rewrite_rule_14924');
function attachment_rewrite_rule_14924($wp_rewrite){
$new_rules = array();
$new_rules['attachment/(\d*)$'] = 'index.php?attachment_id=$matches[1]';
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
}
@scottwyden
scottwyden / gist:ad1a38aa6d5599f52797
Created Mar 27, 2015
Photocrati Theme Attachment Page Mod
View gist:ad1a38aa6d5599f52797
<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>
You can’t perform that action at this time.