Skip to content

Instantly share code, notes, and snippets.

View anilmeena's full-sized avatar

Anil Meena anilmeena

View GitHub Profile
@anilmeena
anilmeena / add-cart-price-and-quantity-in-header.txt
Created October 7, 2016 03:31
Add cart price and quantity in header
// Add cart price and quantity in header.liquid file
{{ cart.item_count }} {{ cart.item_count | pluralize: 'Item', 'Items' }} ({{ cart.total_price | money }})
@anilmeena
anilmeena / change-the-footer-text-of-genesis-theme.php
Last active October 7, 2016 03:28
Change the footer text of genesis theme
@anilmeena
anilmeena / genesis-category-template.php
Created October 7, 2016 03:21
Genesis category page template
<?php
// Create category.php file & put this code
/**
* Custom Category Template
**/
// Remove default loop
//remove_action( 'genesis_loop', 'genesis_do_loop' );
function wps_category_loop_args() {
return array(
'category_name' => get_query_var( 'category_name' ),
@anilmeena
anilmeena / add-capabilities-for-custom-post-type.php
Created October 7, 2016 03:16
Add Capabilities for Custom Post type
<?php
// Add Capabilities for Custom Post type
add_action( 'init', 'create_my_post_types' );
function create_my_post_types() {
register_post_type(
'movie',
array(
'public' => true,
'capability_type' => 'movie',