Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / Custom CSS
Last active January 30, 2017 05:55
Unicase Tooltip add for Wishlist/Compare
.woocommerce .shop_table tbody tr td.product-remove a {
display: inline-block;
}
.woocommerce .shop_table tbody tr td.product-remove a {
width: 18px;
}
@jmabbas
jmabbas / style.css
Last active May 30, 2017 05:18
pizzaro Radio button style
.ywapo_group_container_radio label {
height: 100%;
width: auto;
text-align: left;
}
.ywapo_input_container_radio input {
height: 32px;
}
.ywapo_group_container_radio label:before {
@jmabbas
jmabbas / style.css
Created May 2, 2017 15:38
pizzaro add on description
.single-product div.product form.cart .ywapo_input_container_checkbox .ywapo_option_description {
display: inline-block;
z-index: 5;
}
.ywapo_option_description .yith_wccl_tooltip {
width: 500px;
margin-left: -240px;
left: 0;
}
@jmabbas
jmabbas / functions.php
Created May 3, 2017 05:51
Pizzaro add-ons remove in shop page
function pz_child_wp_loaded() {
remove_action( 'woocommerce_shop_loop_item_title', 'pizzaro_wapo_display_on_loop', 20 );
}
add_action( 'wp_loaded', 'pz_child_wp_loaded' );
@jmabbas
jmabbas / functions.php
Created May 10, 2017 04:17
Pizzaro header V-1 with header V-2 cart Style
add_action('wp_loaded', 'pz_custom_wp_loaded');
function pz_custom_wp_loaded() {
remove_action( 'pizzaro_header_v1', 'pizzaro_header_cart_v2', 50 );
}
add_action( 'pizzaro_header_v1', 'pizzaro_header_cart', 50 );
@jmabbas
jmabbas / functions.php
Last active January 26, 2019 17:44
Electro Header compare Icon to My account icon replacement
add_action('wp_loaded', 'el_custom_wp_loaded');
function el_custom_wp_loaded() {
remove_action( 'electro_navbar', 'electro_navbar_compare', 50 );
}
add_action( 'electro_navbar', 'electro_navbar_account', 50 );
if ( ! function_exists( 'electro_navbar_account' ) ) {
/**
* Displays a link to account page in navbar
@jmabbas
jmabbas / functions.php
Created May 19, 2017 14:52
electro replacement of add to cart to compare
add_action('wp_loaded', 'el_custom_wp_loaded');
function el_custom_wp_loaded() {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
remove_action( 'electro_loop_action_buttons', 'electro_add_to_compare_link', 20 );
remove_action( 'electro_product_card_view_body', 'woocommerce_template_loop_add_to_cart', 70 );
}
add_action( 'woocommerce_after_shop_loop_item', 'electro_add_to_compare_link', 10 );
add_action( 'electro_product_card_view_body', 'electro_add_to_compare_link', 70 );
@jmabbas
jmabbas / store-locator.html
Created May 24, 2017 15:10
pizzaro-html adding stores in store locator page
<!DOCTYPE html>
<html lang="en-US" itemscope="itemscope" itemtype="http://schema.org/WebPage">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pizzaro</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css" media="all" />
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css" media="all" />
<link rel="stylesheet" type="text/css" href="assets/css/animate.min.css" media="all" />
<link rel="stylesheet" type="text/css" href="assets/css/font-pizzaro.css" media="all" />
@jmabbas
jmabbas / style.css
Last active January 26, 2019 17:41
Electro shop page Filters top in mobile view
@media ( max-width: 768px){
.post-type-archive-product .site-content>.container {
display: flex;
flex-direction: column-reverse;
}
.woocommerce-breadcrumb {
order: 1;
}
}
@jmabbas
jmabbas / functions.php
Created June 7, 2017 09:48
Bethlehem header timer counter name change
add_filter( 'events_countdown_widget_title', 'beth_child_events_countdown_widget_title_change' );
if( ! function_exists( 'beth_child_events_countdown_widget_title_change' ) ) {
function beth_child_events_countdown_widget_title_change() {
return 'Next Mass Starts In: ';
}
}
add_filter( 'our_store_carousel_title', 'beth_child_our_store_carousel_title_change' );