Skip to content

Instantly share code, notes, and snippets.

View agusmu's full-sized avatar

agusmu

  • Indonesia
  • 12:35 (UTC +07:00)
View GitHub Profile
@agusmu
agusmu / content.txt
Last active December 20, 2015 17:09
PrimaShop - Using [prima_featured_slider] Shortcode
[column]
[fourcol_three]
[prima_featured_slider]
[/fourcol_three]
[fourcol_one_last]
Your custom code
@agusmu
agusmu / functions.php
Created August 13, 2013 08:01
PrimaShop - support child theme localization
add_action( 'after_setup_theme', 'primashop_load_childtheme_languages', 5 );
function primashop_load_childtheme_languages() {
/* this theme supports localization */
load_child_theme_textdomain( 'primathemes', THEME_DIR . '/languages' );
}
@agusmu
agusmu / style.css
Last active December 5, 2019 17:55
WooCommerce - Customize Price Using CSS
/* WooCommerce Price (Default) */
.woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price, .woocommerce div.product span.price, .woocommerce div.product p.price, .woocommerce #content div.product span.price, .woocommerce #content div.product p.price, .woocommerce-page div.product span.price, .woocommerce-page div.product p.price, .woocommerce-page #content div.product span.price, .woocommerce-page #content div.product p.price {
color: #333333;
font-size: 1em;
font-weight: normal;
}
/* WooCommerce Price (From Text) */
.woocommerce ul.products li.product .price .from, .woocommerce-page ul.products li.product .price .from, .woocommerce div.product span.price .from, .woocommerce div.product p.price .from, .woocommerce #content div.product span.price .from, .woocommerce #content div.product p.price .from, .woocommerce-page div.product span.price .from, .woocommerce-page div.product p.price .from, .woocommerce-page #content div.product span.price .from, .woocommerce-page #con
@agusmu
agusmu / functions.php
Last active July 16, 2016 18:37
WooCommerce - Hide Product Category Count
add_filter( 'woocommerce_subcategory_count_html', 'prima_hide_subcategory_count' );
function prima_hide_subcategory_count() {
/* empty - no count */
}
@agusmu
agusmu / functions.php
Created August 19, 2013 04:35
WooCommerce - Show navigation on the top of shop page
/* Show pagination on the top of shop page */
add_action( 'woocommerce_before_shop_loop', 'woocommerce_pagination', 10 );
/* Remove pagination on the bottom of shop page */
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );
@agusmu
agusmu / style.css
Created August 20, 2013 14:11
WooCommerce - Change Image Width on WooCommerce Widget
/* WooCommerce Widgets */
.woocommerce ul.cart_list li img, .woocommerce ul.product_list_widget li img, .woocommerce-page ul.cart_list li img, .woocommerce-page ul.product_list_widget li img {
width: 32px;
}
@agusmu
agusmu / content-featured.php
Created August 20, 2013 15:18
PrimaShop - Create 3 Columns Grid Blog Page
<?php
/**
* Plugin installation and activation for WordPress themes.
*
* @package TGM-Plugin-Activation
* @version 2.3.6
* @author Thomas Griffin <[email protected]>
* @author Gary Jones <[email protected]>
* @copyright Copyright (c) 2012, Thomas Griffin
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
<?php
define( 'THEMENAME', 'Kallyas' );
require_once dirname( __FILE__ ) . '/framework/class-tgm-plugin-activation.php';
add_action( 'tgmpa_register', 'kallyas_register_required_plugins' );
function kallyas_register_required_plugins() {
/**
@agusmu
agusmu / prima-header-content.php
Last active December 21, 2015 15:39
PrimaShop - Another Header Menu Customization
<?php
/**
* Custom template for displaying header content (logo and menu).
*
* @category PrimaShop
* @package Templates
* @author PrimaThemes
* @link http://www.primathemes.com
*/