Skip to content

Instantly share code, notes, and snippets.

@tokopress
tokopress / style.css
Created March 26, 2019 08:43
WooCommerce - Hide Button on WooCommerce Message/Error/Info After AddToCart
.woocommerce-error .button.wc-forward,
.woocommerce-info .button.wc-forward,
.woocommerce-message .button.wc-forward {
display: none !important;
}
@tokopress
tokopress / functions.php
Created December 4, 2018 01:04
COD Payment Gateway - Use "on-hold" status, not "processing"
add_filter( 'woocommerce_cod_process_payment_order_status', 'tokopress_custom_change_cod_payment_order_status' );
function tokopress_custom_change_cod_payment_order_status( $order_status, $order ) {
return 'on-hold';
}
@tokopress
tokopress / style.css
Last active July 18, 2018 14:15
Bookie - Add background color overlay in slider
.toko-slider-wrap .toko-slides .toko-slide {
z-index: 1;
position: relative;
}
.toko-slider-wrap .toko-slides .toko-slide:before {
background-color: red;
opacity: 0.3;
position: absolute;
width: 100%;
height: 100%;
@tokopress
tokopress / style.css
Created January 18, 2018 07:16
Eventica - Reduce Header Height
.site-header .container {
height: 100px;
}
.site-branding {
height: 100px;
}
.site-logo-image {
padding: 0px 50px;
line-height: 100px;
}
@tokopress
tokopress / style.css
Last active November 15, 2017 09:58
Marketica - Header Menu - Reduce Pading
.site-header .header-menu li a {
padding-left: 7px;
padding-right: 7px;
}
.site-header .quicknav-icon {
padding-left: 9px;
padding-right: 9px;
}
@tokopress
tokopress / style.css
Created October 31, 2017 23:54
Eventica - Support #12147
@media (max-width: 767px) {
.mobile-menu {
position: absolute;
top: 0;
right: auto !important;
left: 20px !important;
}
.site-logo-image img {
padding-right: 0 !important;
padding-left: 40px !important;
@tokopress
tokopress / style.css
Created October 24, 2017 01:13
Eventica - Custom Mailchimp Newsletter Form Style
form.mc4wp-form input[type="email"], .mc4wp-form form input[type="email"] {
padding: 10px 60px 10px 10px;
border: 1px solid #ddd;
background: none;
}
form.mc4wp-form input[type="submit"], .mc4wp-form form input[type="submit"] {
position: absolute;
top: 0;
right: 0;
@tokopress
tokopress / marketica-wp-child__functions.php
Last active June 7, 2020 17:27
Marketica - Modify WooCommerce Quick Nav Menus
<?php
// To Add in the Functions.php on Child Theme
add_action( 'init', 'remove_actions_parent_theme');
function remove_actions_parent_theme() {
remove_action( 'tokopress_quicknav_account', 'tokopress_wc_quicknav_account_menus', 50 );
};
add_action( 'tokopress_quicknav_account', 'tokopress_wc_quicknav_account_menus_new', 50 );
@tokopress
tokopress / functions.php
Created April 16, 2017 21:29
Dokan - Show Seller Registration Form on WooCommerce 3.0 Registration Page
add_action( 'woocommerce_register_form', 'dokan_seller_reg_form_fields' );
@tokopress
tokopress / eventica-wp-child___block-home___block-recent-post.php
Last active March 31, 2017 02:40
Eventica - Modify home event template, full width recent post
<?php
$args = array(
'post_status'=>'publish',
'post_type'=> 'post',
'posts_per_page'=>3,
'orderby'=>'date',
'order'=>'DESC',
'ignore_sticky_posts' => true
);
$the_recent_post = new WP_Query( $args );