22 Snippets
10+ Favourites
10+ Downloads

Sticky header

/*Sticky header*/ #site-header { position: fixed; top:0; opacity: 0.98; } #main { margin-top: 70px !important; /*…

display user name in a menu

/** * Show a user's display name/user name in a WordPress menu. * Once this code…

Update Cart Automatically

/** * Update Cart Automatically on Quantity Change * * @author Misha Rudrastyh * @url https://rudrastyh.com/woocommerce/remove-update-cart-button.html…

user menu for logged in and logged out users

function my_wp_nav_menu_args( $args = '' ) { if( is_user_logged_in() ) { $args['menu'] = 'logged-in'; } else…

Super Socializer Signin with google style

.theChampLogin.theChampGoogleBackground.theChampGoogleLogin{ height: 44px; background-color: #4285F4; border-radius: 2px; box-shadow: 0 5px 10px 0 rgba(0,0,0,.5); width: 184px; }…

Set Minimum total purchase amount

add_action( 'woocommerce_check_cart_items', 'required_min_cart_subtotal_amount' ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount =…

Remove Order Notes in checkout page

/** * Snippet Name: Remove the Order Notes field section from the WooCommerce checkout. * Snippet…

REMOVE PRODUCT LINKS FROM YOUR SHOPPING CART

add_filter( 'woocommerce_cart_item_permalink', 'custom_remove_cart_product_link', 10 ); function custom_remove_cart_product_link() { return __return_null(); }

home slider html

if (is_front_page()) : ?>

home slider css

/* Increase the image size in the slider */ .container { width: 100%; max-width: 90%; /*…

login redirect changed from default my account page to home page

/** * WooCommerce My Account Page login Redirect */ add_action( 'wp_login', 'owp_redirect_after_logout' ); function owp_redirect_after_logout() {…

1 2