Skip to content

Instantly share code, notes, and snippets.

View marisqaporter's full-sized avatar

marisqaporter

View GitHub Profile
@marisqaporter
marisqaporter / hike-single-edits.css
Last active November 29, 2016 21:30
hike-single-edits
/*change lines 1677 from*/
@media only screen and (max-width: 767px) and (min-width: 320px)
.node-type-hike .vt-commerce-image-wrapper .vt-commerce-image-large img,
.node-type-destination .vt-commerce-image-wrapper .vt-commerce-image-large img,
.node-type-park .vt-commerce-image-wrapper .vt-commerce-image-large img {
float: left;
height: 100% !important;
/* margin: -2px 6px 10px 0; */
width: auto !important;
@marisqaporter
marisqaporter / company_standards.php
Created November 28, 2016 23:36
company standards for the shed builders
<?php
$args = array(
'post_type' => 'feature', // enter your custom post type
);
$loop = new WP_Query( $args );
if( $loop->have_posts() ):
@marisqaporter
marisqaporter / testimonials.css
Last active November 28, 2016 23:36
testimonials for the shed builders
/*testimonials loop */
.site-1200 {
margin:30px auto;
display:block;
position:relative;
max-width:1140px;
}
@marisqaporter
marisqaporter / image-padding.css
Last active November 29, 2016 16:58
hike image and padding fixes
@media only screen and (max-device-width: 480px) and (min-device-width: 320px)
.view-id-hike_single_page .views-field.views-field-field-features {
line-height: 32px;
margin-top: 315px;
padding-left: 20px;
}
@media only screen and (max-device-width: 480px) and (min-device-width: 320px)
.get-directions {
@marisqaporter
marisqaporter / not-so-awesome-product-loop.php
Created November 17, 2016 19:49
not-so-awesome-product-loop
<?php
$args = array(
'post_type' => 'accessory', // enter your custom post type
);
$loop = new WP_Query( $args );
if( $loop->have_posts() ):
@marisqaporter
marisqaporter / 218.css
Last active November 1, 2016 22:33
code-fix
.easy-breadcrumb a {
margin-left: -34px;
/* background-image: url(/sites/default/files/navigation-tab-bg.png); */
padding: 12px 50px 14px;
color: #666;
background-position: top right;
background-repeat: no-repeat;
font-weight: normal;
}
@marisqaporter
marisqaporter / form.focus.js
Last active July 27, 2016 18:41
mad lib form files
jQuery(document).ready(function($){
$(".clear_field input").focus(function () {
var origval = $(this).val();
$(this).val("");
//console.log(origval);
$(".clear_field input").blur(function () {
if($(this).val().length === 0 ) {
$(this).val(origval);
origval = null;
}else{
<?php
/**
* Fix Gravity Form Tabindex Conflicts
* http://gravitywiz.com/fix-gravity-form-tabindex-conflicts/
*/
add_filter( 'gform_tabindex', 'gform_tabindexer', 10, 2 );
function gform_tabindexer( $tab_index, $form = false ) {
$starting_index = 1000; // if you need a higher tabindex, update this number
if( $form )
add_filter( 'gform_tabindex_' . $form['id'], 'gform_tabindexer' );
@marisqaporter
marisqaporter / stop-setting-first-image.php
Last active March 8, 2016 17:23
stop genesis from setting first image as featured image
/*stop genesis from setting first image as featured */
function remove_featured_image_archives( $post ) {
if( !has_post_thumbnail() )
$post = '';
return $post;
}
add_filter( 'genesis_pre_get_image', 'remove_featured_image_archives', 10, 3 );
@marisqaporter
marisqaporter / repeaterfields.php
Created March 4, 2016 17:36
if you have rows
if( have_rows('parent_field') ):
while ( have_rows('parent_field') ) : the_row();
// Your loop code
the_sub_field('sub_field');
endwhile;
else :