This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Replace WooCommerce Default Pagination with WP-PageNavi Pagination for Woo Canvas | |
**/ | |
add_action('init','alter_woo_hooks'); | |
function alter_woo_hooks() { | |
remove_action( 'woocommerce_after_main_content', 'canvas_commerce_pagination', 01, 0 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
overflow-x: hidden; | |
height: auto; | |
} | |
#container { | |
padding-right: 3000px; | |
margin-right: -3000px; | |
padding-left: 3000px; | |
margin-left: -3000px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CSS | |
if ( WP_DEBUG ) { | |
define( 'RO_VERSION', time() ); | |
} else { | |
define( 'RO_VERSION', '1.0.1' ); | |
} | |
// wp_enqueue stylesheet for Woo Shortcodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WooCommerce VAT | |
* Plugin URI: http://raison.co/ | |
* Description: Adds VAT at 20% to products on shop and archive pages | |
* Author: raisonon | |
* Author URI: http://www.raison.co/ | |
* Version: 1.1 | |
* License: GPLv2 or later | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* Home - Blog Grid */ | |
.home-blog-grid article { | |
float: left; | |
width: 47%; | |
padding-right: 3%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Template Essentials - Add to / create php.ini in /wp-admin/ | |
upload_max_filesize = 64M | |
post_max_size = 64M | |
max_execution_time = 300 | |
memory_limit = 256M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* dynamic pricing - cumulative addition between order and product deals */ | |
add_filter('woocommerce_dynamic_pricing_is_cumulative', 'custom_dynamic_pricing_cumulative', 10, 4); | |
function custom_dynamic_pricing_cumulative($default, $module_id, $cart_item, $cart_item_key) { | |
return true; | |
} | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* type */ | |
/* ** navigation */ | |
/* move admin bar to bottom */ | |
body.admin-bar { | |
margin-top: -28px; | |
padding-bottom: 28px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// insert page content | |
// Inserts page content per page. Eg. insert-home.php for Home, insert-functions.php for Functions | |
add_action('woo_content_before','ro_insert_page'); | |
function ro_insert_page () { | |
global $post; |
OlderNewer