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_action('storefront_homepage_after_featured_products_title', 'custom_storefront_product_featured_description'); | |
function custom_storefront_product_featured_description(){ ?> | |
<p class="element-title--sub"> | |
<?php echo "Section description here";?> | |
</p> | |
<?php } |
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_filter('storefront_product_categories_shortcode_args','custom_storefront_category_per_page' ); | |
// Category Products | |
function custom_storefront_category_per_page( $args ) { | |
$args['number'] = 10; | |
return $args; | |
} |
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_filter('storefront_product_categories_shortcode_args','custom_storefront_category_child' ); | |
// Category Products - display child categories | |
function custom_storefront_category_child( $args ) { | |
$args['child_categories'] = 1; | |
return $args; | |
} |
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
.site-header .col-full{ | |
max-width:100%; | |
} |
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_action( 'init', 'custom_remove_storefront_header_search' ); | |
function custom_remove_storefront_header_search() { | |
remove_action( 'storefront_header', 'storefront_product_search', 40 ); | |
} |
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
/** | |
* Allow PPT & PPTX file upload for Ultimate Member | |
* @link https://wordpress.org/plugins/ultimate-member/ | |
*/ | |
add_filter( 'um_allowed_file_types', 'matt_allowed_new_file_types', 10, 1 ); | |
function matt_allowed_new_file_types( $types ) { | |
$types = array( | |
'pdf' => 'PDF', | |
'txt' => 'Text', |
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 | |
/** | |
* Ultimate member - Display User ID below Username in Profile Page. | |
* @link https://wordpress.org/plugins/ultimate-member/ | |
*/ | |
function custom_display_id_profile_page(){ | |
echo '<p>'; | |
esc_html_e( 'Membership ID: ', 'theme-name'); | |
echo um_profile_id(); |
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_filter( 'um_woocommerce_account_orders_args', 'um_woo_order_tab_custom' ); | |
function um_woo_order_tab_custom( $args ) { | |
$args['order'] = 'DESC'; | |
return $args; | |
} |
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
.uimob340 .um-group-name, | |
.uimob340 .um-group-item .um-group-image, | |
.uimob340 .um-group-item .um-group-meta, | |
.uimob340 .um-group-item .actions{ | |
width:100%; | |
float:left; | |
text-align:center; | |
margin:.5em 0; | |
} |
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_action('um_theme_header_profile_before', 'custom_add_last_login_time' ); | |
function custom_add_last_login_time(){ | |
echo '<div class="small alert alert-light" role="alert">'; | |
echo "Last Login : "; | |
echo um_user_last_login( get_current_user_id() ); | |
echo '</div>'; | |
} |