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
<script> | |
jQuery(document).ready(function($) { | |
$('.ct-filter').on( 'click', function(event){ | |
var $type = $(this).data("filter"); | |
if($type == "all"){ | |
$('.entry-card').fadeOut(0); | |
$('.entry-card').fadeIn(500); | |
} else { | |
$('.entry-card').hide(); | |
// For CPTs just change the category class to your CPTs slug for example: '.projects-' |
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( 'wp_head', function () { | |
?> | |
<link rel="preload" href="/wp-content/uploads/blocksy/local-google-fonts/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2" as="font" type="font/woff2" crossorigin> | |
<link rel="preload" href="/wp-content/uploads/blocksy/local-google-fonts/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2" as="font" type="font/woff2" crossorigin> | |
<link rel="preload" href="/wp-content/uploads/blocksy/local-google-fonts/s/poppins/v15/pxiByp8kv8JHgFVrLCz7Z1xlFd2JQEk.woff2" as="font" type="font/woff2" crossorigin> | |
<?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
function my_leco_cp_logout_url() { | |
// return the preferred URL. | |
return home_url(); | |
} | |
add_filter( 'leco_cp_logout_url', 'my_leco_cp_logout_url' ); | |
function my_leco_cp_client_portal_archive() { | |
return 'Ihre Projekte'; | |
} | |
add_filter( 'leco_cp_client_portal_archive', 'my_leco_cp_client_portal_archive' ); |
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
function my_leco_cp_client_roles( $roles ) { | |
$roles = array_merge( $roles, array( 'administrator', 'customer' ) ); | |
return $roles; | |
} | |
add_filter( 'leco_cp_client_roles', 'my_leco_cp_client_roles' ); |
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( 'after_setup_theme', function() { | |
remove_action( 'woocommerce_single_product_summary', array( 'WGM_Template', 'woocommerce_de_price_with_tax_hint_single' ), 7 ); | |
}); |
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( 'after_setup_theme', function() { | |
remove_action( 'woocommerce_after_shop_loop_item_title', array( 'WGM_Template', 'woocommerce_de_price_with_tax_hint_loop' ), 5 ); | |
}); |
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
function my_remove_product_type_options( $options ) { | |
// uncomment this if you want to remove virtual too. | |
if ( isset( $options['virtual'] ) ) { | |
unset( $options['virtual'] ); | |
} | |
if ( isset( $options['downloadable'] ) ) { | |
unset( $options['downloadable'] ); | |
} | |
return $options; | |
} |
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
// Billing Fields. | |
add_filter( 'woocommerce_billing_fields', 'custom_woocommerce_billing_fields' ); | |
function custom_woocommerce_billing_fields( $fields ) { | |
$fields['billing_address_2']['label'] = 'Address 2'; | |
$fields['billing_address_2']['label_class'] = ''; | |
return $fields; | |
} | |
// Shipping Fields. |
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 ( 'woocommerce_account_menu_items', 'misha_purchased_products_link', 40 ); | |
add_action( 'init', 'misha_add_products_endpoint' ); | |
add_action( 'woocommerce_account_purchased-products_endpoint', 'misha_populate_products_page' ); | |
// here we hook the My Account menu links and add our custom one | |
function misha_purchased_products_link( $menu_links ){ | |
// we use array_slice() because we want our link to be on the 3rd position | |
return array_slice( $menu_links, 0, 2, true ) | |
+ array( 'purchased-products' => 'Purchased Products' ) |
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( 'woocommerce_subcategory_count_html', '__return_false' ); |
OlderNewer