Skip to content

Instantly share code, notes, and snippets.

@pommiegranit
Last active August 29, 2015 14:09
Show Gist options
  • Save pommiegranit/14c447142173a182235c to your computer and use it in GitHub Desktop.
Save pommiegranit/14c447142173a182235c to your computer and use it in GitHub Desktop.
Custom styles for PopUp Pro from WPMU Dev
jQuery('document').ready(function($){
$('input[name=subscription-email]').attr('placeholder','Enter your email address...');
});
.has-popup .wdpu-msg {
-webkit-animation-name: bounceInDown;
animation-name: bounceInDown;
-webkit-animation-duration: 2s;
animation-duration: 2s;
}
function my_custom_popup_styles( $list ) {
$list[] = (object) array(
'url' => get_template_directory_uri() . '/popup-custom-styles-master/elegant/',
'dir' => get_template_directory() . '/popup-custom-styles-master/elegant/',
'name' => 'Elegant',
);
return $list;
}
add_filter( 'popup-styles', 'my_custom_popup_styles' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment