Skip to content

Instantly share code, notes, and snippets.

@j26design
j26design / cpt-genesis.php
Created March 24, 2016 23:26 — forked from neilgee/a-cpt.php
CPT (Custom Post Type) Genesis Theme - Plugin - WordPress Example
<?php
/*
Plugin Name: Event Custom Post Type
Plugin URI: http://wpbeaches.com/create-custom-post-types-in-genesis-child-theme-in-wordpress/
Description: Custom Post Types for Event
Author: Neil Gee
Version:1
Author URI:http://wpbeaches.com
*/
@j26design
j26design / continueShoppingRedirect.js
Last active December 20, 2015 21:15 — forked from makfruit/ecwid_redirect_continue_shopping.html
An HTML/Javascript code snippet for Ecwid to redirect continue shopping buttons to a custom page
if (typeof(Ecwid) == 'object') {
Ecwid.OnAPILoaded.add(function() {
// Redirect address. Change it to the URL of page where you want to redirect your customers.
// You can use absolute or relative addresses, e.g. 'index.html', 'http://google.com'
var continueShoppingRedirect = "#!/~/category/id=0";
// Delay (ms), which is necessary for the empty cart page to appear after onCartChange event firing
var empty_cart_page_delay = 500;
// Continue shopping buttons CSS selectors