Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / style.css
Created June 8, 2017 11:42
Unicase Mega menu
/*===================================================================================*/
/* UNICASE MEGA-MENU
/*===================================================================================*/
.yamm .nav, .yamm .collapse, .yamm .dropup, .yamm .dropdown {
position: static;
}
.yamm .container {
position: relative;
}
.yamm .dropdown-menu {
@jmabbas
jmabbas / functions.php
Last active January 26, 2019 17:41
electro footer call us mobile view direct call
if ( ! function_exists( 'electro_footer_call_us' ) ) {
/**
* Displays Call Us text in Footer contact
*/
function electro_footer_call_us() {
$call_us_text = apply_filters( 'electro_call_us_text', __( 'Got Questions ? Call us 24/7!', 'electro' ) );
$call_us_number = apply_filters( 'electro_call_us_number', '(800) 8001-8588, (0600) 874 548' );
$call_us_icon = apply_filters( 'electro_call_us_icon' , 'ec ec-support' );
@jmabbas
jmabbas / style.css
Last active August 9, 2017 07:48
Pizzaro single product radio button default style
.single-product div.product form.cart .ywapo_input_container_radio input:checked+label::before {
content: "\f058";
color: #ffcd00;
background-color: #000;
background: radial-gradient(ellipse at center, rgba(19,19,19,1) 56%, rgba(19,19,19,0.45) 7%, rgba(255,255,255,0) 47%);
border: 0;
height: 15px;
width: 16px;
}
@jmabbas
jmabbas / functions.php
Created September 22, 2017 14:26
Eletro handheldmenu button befoe text
if ( ! function_exists( 'electro_handheld_nav' ) ) {
/**
* Displays HandHeld Navigation
*/
function electro_handheld_nav() {
?>
<div class="handheld-navigation-wrapper">
<div class="handheld-navbar-toggle-buttons clearfix">
<p class="handheld-before-text">All Categories</p>
<button class="navbar-toggler navbar-toggle-hamburger hidden-lg-up pull-right flip" type="button">
@jmabbas
jmabbas / functions.php
Created September 25, 2017 12:46
electro wc-vendor single product verified vendor label
if ( ! function_exists( 'electro_wc_vendor_verified_vendor' ) ) {
function electro_wc_vendor_verified_vendor() {
global $product;
$post = get_post( $product->get_id() );
if ( WCV_Vendors::is_vendor_product_page( $post->post_author ) ) {
$vendor_id = $post->post_author;
@jmabbas
jmabbas / style.css
Created September 27, 2017 06:54
techmarket brands carousel image alternetive name showing
.brands-carousel .text-overlay {
text-align: center;
text-transform: uppercase;
display: block;
opacity: 0.6;
padding-top: 12px;
}
.brands-carousel .text-overlay:hover {
opacity: 1;
@jmabbas
jmabbas / functions.php
Last active January 26, 2019 17:41
Electro price before text
add_filter( 'woocommerce_get_price_html', 'electro_price_prefix_text', 100, 2 );
function electro_price_prefix_text( $price, $product ){
$price = 'prefix here ' . $price . ' suffix here';
return apply_filters( 'woocommerce_get_price', $price );
}
@jmabbas
jmabbas / style.css
Created October 12, 2017 12:09
Pizzaro mobile header phone number view
@media (max-width: 1199px) {
.header-wrap {
flex-wrap: wrap;
}
.site-header .header-info-wrapper {
width: 100%;
display: flex;
justify-content: center;
}
@jmabbas
jmabbas / style.css
Created October 16, 2017 11:54
Techmarket header-v3 background color change
@media (min-width: 1025px) {
.header-v3 .sticky-wrapper .techmarket-sticky-wrap.stuck.faster {
background-color: #232f3e;
}
}
.header-v3 .col-full.desktop-only {
background-color: #232f3e;
}
@jmabbas
jmabbas / functions.php
Last active April 8, 2019 06:37
Techmarket sticky mobile veiw logo and phone number view
function techmarket_hh_sticky_phone_number_with_logo() {
?><div class="phone-number-with-logo">
<?php techmarket_site_branding(); ?>
<div class="social-links" style="display: flex; justify-content: flex-start;">
<a href="https://web.telegram.org/">
<img src="https://cdn3.iconfinder.com/data/icons/popular-services-brands-vol-2/512/telegram-512.png" alt="" width=10 height=10>
</a>
<a href="https://web.whatsapp.com/">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSqDjTUA9WYBh7u1EvJqP-HWIPLIRLyg0cf1sOPSqz_AKyUPBdCoA" alt="" width=10 height=10>
</a>