Skip to content

Instantly share code, notes, and snippets.

View surefirewebserv's full-sized avatar

Jonathan Perez surefirewebserv

View GitHub Profile
@surefirewebserv
surefirewebserv / gist:6c2d511236ab75976dcd
Created February 20, 2016 03:35
Simple Toggle jQuery
jQuery(document).ready(function(){
jQuery(".toggle-script").click(function (e) {
e.preventDefault();
jQuery("#toggle-show-more").toggle("blind");
});
});
<script>
var $ = jQuery;
$(document).ready( function() {
$('.shows select').change(function(){
var name = $(this).parent().parent().attr('class').split(' ');
var row = name[3];
var mainClass = row.split('--');
var values = $(this).val().split(' -- '); //Event-Date-Location
$('.location-' + mainClass[1] + ' input').val(values[2]);
$('.venue-date-' + mainClass[1] + ' input').val(values[1]);
@surefirewebserv
surefirewebserv / mess.html
Created December 13, 2016 15:27
Here's the mess that views outputs
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<table width="100%" class="wpv-loop js-wpv-loop">
<wpv-loop wrap="3" pad="true">
[wpv-item index=1]
<tr>
<td>
<h2>[wpv-taxonomy-title]</h2>
[wpv-view name="List of Lessons in Course"]
@surefirewebserv
surefirewebserv / clean.html
Created December 13, 2016 15:30
Clean Grid for Views
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="3" pad="true">
[wpv-item index=1]
<div class="first one-third">
<h2>[wpv-taxonomy-title]</h2>
[wpv-view name="List of Lessons in Course"]
</div>
[wpv-item index=other]
<?php
add_filter( 'genesis_attr_nav-secondary', 'gsbb_menu_second_align_left', 10, 2 );
function gsbb_menu_second_align_left( $attributes, $gs_class ) {
if ($gs_secondary_alignment == 'menu_sencond_align_left'){
$gs_class = "nav-left";
} else if ($gs_secondary_alignment == 'menu_second_align_right') {