Skip to content

Instantly share code, notes, and snippets.

View ckschmieder's full-sized avatar

Chris Schmieder ckschmieder

View GitHub Profile
@ckschmieder
ckschmieder / integrityh-custom-css-backup.css
Created February 16, 2017 20:33
Backup of styles from the IH custom css plugin.
ul#menu-main-navigation > li > a {
pointer-events: none;
}
h4 {
margin-bottom: 1em;
}
.wrapper {
max-width: 1100px;
margin: 0 auto;
}
@ckschmieder
ckschmieder / polaroid-product-grid.css
Last active March 15, 2017 00:34
Makes Polaroid products page grid responsive via flexbox
body.all-products #main-content .product-box {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
margin: 0 5px 15px!important;
}
.category-feature {
width: 100%;
min-width: 445px;
@ckschmieder
ckschmieder / thumbs.php
Created March 21, 2017 03:53
thumbnail sizes for randj
function child_theme_setup() {
add_image_size( 'post-index-thumb', 370, 278, true );
add_image_size( 'post-grid-thumb', 280, 280, true );
add_image_size( 'post-featured-img', 870, 580, true );
add_image_size( 'portfolio-featured-img', 761, 456, true );
}
add_action( 'after_setup_theme', 'child_theme_setup', 11 );
@ckschmieder
ckschmieder / csq-style.css
Created April 5, 2017 01:46
Circle Squared dev theme styles backup 4/4/16
#main-content .container {
max-width: 960px;
}
.entry-content {
color: #333;
}
.about-top {
background: -moz-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(255,255,255,1) 80%), url(http://cs.randjsc.com/wp-content/uploads/2017/03/istock-2200px-opt.jpg);
background: -webkit-linear-gradient(top, rgba(255,255,255,.4) 0%,rgba(255,255,255,1) 80%), url(http://cs.randjsc.com/wp-content/uploads/2017/03/istock-2200px-opt.jpg);
background: linear-gradient(to bottom, rgba(255,255,255,.4) 0%,rgba(255,255,255,1) 80%), url(http://cs.randjsc.com/wp-content/uploads/2017/03/istock-2200px-opt.jpg);
@ckschmieder
ckschmieder / csq-scrapp-css.css
Created April 5, 2017 01:51
Circle Squared scrap css
.et-social-icons li {
margin: 0 10px;
}
.et_pb_team_member_image {
filter: grayscale(0.8) hue-rotate(30deg)!important;
}
.et_pb_team_member_image {
@ckschmieder
ckschmieder / custom-css.css
Created April 8, 2017 21:48
backup of styles that live in the custom css plugin
.vc_carousel-slideline-inner .vc_inner img {
margin: 0 auto!important;
display: block;
}
/*.df-footer {
display: none;
}*/
.df-footer .siteinfo p {
@ckschmieder
ckschmieder / checkbox.js
Last active May 6, 2017 19:32
Validate a checkbox before submit
$(function(){
$('#NationalPhotoMonth_submitButton').click(function() {
if(!$('#NationalPhotoMonth_Field_48').is(':checked')){
alert('Not Checked');
return false;
}
if($('#NationalPhotoMonth_Field_48').is(':checked')){
alert('Checked - GO');
return true;
}
@ckschmieder
ckschmieder / validate-checkbox.js
Created May 6, 2017 20:22
Trying to prevent submission of the form if the checkbox isn't checked. The alert is working properly but the form still submits after dismissing the alert.
$(function(){
$('#NationalPhotoMonth_submitButton').click(function(e) {
e.preventDefault();
if(!$('#NationalPhotoMonth_Field_48').is(':checked')){
alert('You must agree to the term and conditions.');
return false;
}
if($('#NationalPhotoMonth_Field_48').is(':checked')){
return true;
}
$(function() {
$("#NationalPhotoMonth_submitButton").click(function(event) {
if (!$("#NationalPhotoMonth_Field_48").is(":checked")) {
event.stopImmediatePropagation();
alert('You must agree to the Terms and Conditions!');
}
});
});
$(function() {
$("#UserContentSubmissionForm_submitButton").click(function(event) {
if (!$("#UserContentSubmissionForm_Field_47").is(":checked")) {
event.stopImmediatePropagation();
alert('You must agree to the Terms and Conditions!');
}
});
});