This file contains hidden or 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
| // Add cart price and quantity in header.liquid file | |
| {{ cart.item_count }} {{ cart.item_count | pluralize: 'Item', 'Items' }} ({{ cart.total_price | money }}) |
This file contains hidden or 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 | |
| // 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' ), |
This file contains hidden or 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 | |
| // 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', |
NewerOlder