Skip to content

Instantly share code, notes, and snippets.

View aslamahamed13's full-sized avatar
💭

Aslam aslamahamed13

💭
  • Chennai, India
  • 16:52 (UTC +05:30)
View GitHub Profile
@aslamahamed13
aslamahamed13 / style.css
Last active October 1, 2020 13:14
Electro - Product categories and title below the product thumbnail
.product-loop-header .woocommerce-loop-product__title,
.product-loop-header .loop-product-categories a,
.owl-item>.product .product-loop-body .loop-product-categories,
.products>.product .product-loop-body .loop-product-categories,
.owl-item>.product .product-loop-body .product-rating,
.products>.product .product-loop-body .product-rating,
.owl-item>.product .product-loop-body .product-short-description,
.products>.product .product-loop-body .product-short-description,
.owl-item>.product .product-loop-body .product-sku,
.products>.product .product-loop-body .product-sku {
@aslamahamed13
aslamahamed13 / style.css
Created September 28, 2020 14:55
Electro - Product card carousel style
.product-cards-carousel ul.products>li.product-card:nth-child(n+4) {
display: block;
}
.handheld-footer .handheld-footer-bar .footer-call-us .call-us-number, .handheld-footer .handheld-footer-bar .footer-call-us .call-us-number a {
font-size: 18px;
}
@aslamahamed13
aslamahamed13 / header-3-level-light.php
Last active August 28, 2020 07:45
Cartzilla - 3 level light header search option
<?php
/**
* Template for displaying the "3 Level Light" header
*
* @link https://codex.wordpress.org/Template_Hierarchy
*/
?>
<header id="masthead" role="banner" class="site-header box-shadow-sm site-header-v3-light">
<?php if ( apply_filters('cartzilla_enable_topbar' , true )): ?>
<div class="<?php cartzilla_topbar_class( 'light' === cartzilla_topbar_skin() ? 'topbar-light bg-secondary' : 'topbar-dark bg-dark' ); ?>">
@aslamahamed13
aslamahamed13 / style.css
Created July 16, 2020 13:31
Electro - Click to open home-v2 menu
.page-template-template-homepage-v2 .departments-menu-v2>.dropdown>.dropdown-menu {
display: none;
}
.page-template-template-homepage-v2 .departments-menu-v2>.dropdown.open>.dropdown-menu {
display: block;
}
@aslamahamed13
aslamahamed13 / style.css
Last active July 15, 2020 04:34
Electro - Hide Breadcrumb in mobile
@media (max-width: 568px) {
.woocommerce-breadcrumb {
display: none;
}
.site-header {
margin-bottom: 10px;
}
}
add_filter('body_class','er_logged_in_filter');
function er_logged_in_filter($classes) {
if( is_user_logged_in() ) {
$classes[] = 'loggedin-class';
} else {
$classes[] = 'loggedout-class';
}
return $classes;
}
@aslamahamed13
aslamahamed13 / style.css
Created May 19, 2020 10:54
Front - Check icon css
.fgb-pricing-interactive-1.style-2 .list-group li:before {
font-family: "Font Awesome 5 Free";
content: "\f00c";
vertical-align: middle;
font-weight: 900;
font-size: 0.75rem;
width: 1.5rem;
height: 1.5rem;
background-color: rgba(55, 125, 255, 0.1);
margin-right: 1rem !important;
@aslamahamed13
aslamahamed13 / function.php
Created May 15, 2020 14:21
Vodi - Disable header logo link
function vodi_header_logo() {
?><div class="site-header__logo"><?php
if ( has_custom_logo() ) {
the_custom_logo();
} elseif ( apply_filters( 'vodi_use_svg_logo', false ) ) {
?><div href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="navbar-brand"><?php vodi_get_template( 'global/logo-svg.php' ); ?></div><?php
} else {
?><div href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="navbar-brand"><h1 class="site-title"><?php bloginfo( 'name' ); ?></h1></div><?php
}
?></div><?php
@aslamahamed13
aslamahamed13 / function.php
Last active May 15, 2020 14:15
Electro - Hide sortings
function ec_child_woocommerce_catalog_orderby_change( $orderby ) {
unset($orderby["rating"]);
unset($orderby["price"]);
unset($orderby["date"]);
unset($orderby["price-desc"]);
return $orderby;
}
add_filter( "woocommerce_catalog_orderby", "ec_child_woocommerce_catalog_orderby_change", 20 );
@aslamahamed13
aslamahamed13 / function.php
Created May 15, 2020 14:15
Electro - Hide sortings
function ec_child_woocommerce_catalog_orderby_change( $orderby ) {
unset($orderby["rating"]);
unset($orderby["price"]);
unset($orderby["date"]);
unset($orderby["price-desc"]);
return $orderby;
}
add_filter( "woocommerce_catalog_orderby", "ec_child_woocommerce_catalog_orderby_change", 20 );