Skip to content

Instantly share code, notes, and snippets.

View raphaelkross's full-sized avatar

Rafael Angeline raphaelkross

View GitHub Profile
@raphaelkross
raphaelkross / 0_reuse_code.js
Created May 19, 2017 18:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
function fwp_preload_facets() {
?>
<script>
(function($) {
$(document).on('facetwp-refresh', function() {
if (! FWP.loaded && '' == FWP.build_query_string()) {
FWP.facets['product_availability'] = ['americas'];]
FWP.refresh();
}
@raphaelkross
raphaelkross / gist:6ecc582ce7e145beeffbf3f3e5e38d98
Last active February 17, 2017 16:20 — forked from anonymous/gist:f14041f73416fbbc3b7e374a2ae2d279
Having problems getting the sort to show on this page. See line 8. Site is http://thecopperlemon.com/archives/
<?php
/*
Template Name: Archives Page
*/
?>
<?php get_header(); ?>
<main id="main" class="site-main" role="main">
<div class="facetwp-template">