Skip to content

Instantly share code, notes, and snippets.

View anastransvelo's full-sized avatar

Mohamed Anas anastransvelo

  • Transvelo
  • Chennai
View GitHub Profile
@anastransvelo
anastransvelo / style.css
Last active March 20, 2020 07:19 — forked from jmabbas/style.css
Tokoo - Live search slider overlap
.tokoo-search-form-wrapper form.search-form,
.tokoo-search-form-wrapper .woocommerce-product-search,
.widget_search form.search-form,
.widget_search .woocommerce-product-search,
.widget_product_search form.search-form,
.widget_product_search .woocommerce-product-search {
z-index: 10;
}
.twitter-typeahead .tt-menu {
@anastransvelo
anastransvelo / functions.php
Last active August 9, 2019 06:33 — forked from abubackerbsc/Electro v2 - Departments menu clickable dropdown
Electro v2 - Shop By Department menu clickable dropdown to open
function electro_departments_menu_v2() {
$calling_action = current_filter();
if ( 'electro_navbar_v2' === $calling_action ) {
$theme_location = 'departments-menu';
$menu_title = apply_filters( 'electro_departments_menu_title', esc_html__( 'Shop by Department', 'electro' ) );
$menu_icon = apply_filters( 'electro_departments_menu_icon', 'ec ec-arrow-down-search' );
$menu_title = $menu_title . '<i class="departments-menu-v2-icon ' . esc_attr( $menu_icon ) . '"></i>';
@anastransvelo
anastransvelo / functions.php
Last active June 26, 2019 05:50 — forked from ibndawood/functions.php
Electro v2 - Change wishlist and compare icon
add_filter( 'electro_compare_icon', 'ec_child_change_compare_icon', 20 );
function ec_child_change_compare_icon( $compare_icon ) {
$compare_icon = 'fas fa-columns';
return $compare_icon;
}
add_filter( 'electro_wishlist_icon', 'ec_child_change_wishlist_icon', 20 );
function ec_child_change_wishlist_icon( $wishlist_icon ) {
@anastransvelo
anastransvelo / Style.css
Last active June 14, 2019 06:06 — forked from akther80/functions.php
Techmarket - Clickable Primary navigation parent menu
.primary-navigation .menu-item-has-children:hover:after {
position: absolute;
display: block;
content: ' ';
width: 100%;
height: 50px;
}
.primary-navigation .dropdown-menu {
display: none;
@anastransvelo
anastransvelo / functions.php
Last active May 24, 2019 08:19 — forked from farookibrahim/functions.php
Electro display tags in archive
if ( ! function_exists( 'electro_template_loop_tags' ) ) {
/**
* Output Product Tags
*
*/
function electro_template_loop_tags() {
global $product;
$product_id = electro_wc_get_product_id( $product );
$tags = wc_get_product_tag_list( $product_id );
@anastransvelo
anastransvelo / style.css
Last active May 22, 2019 07:47 — forked from aslamahamed13/style.css
Electro customisation
@media (min-width: 1200px) {
.header-v3 .navbar-search {
max-width: 600px;
}
}
.archive .widget .product-categories {
background-color: #f4f4f4;
}
@anastransvelo
anastransvelo / function.php
Last active March 20, 2019 19:25 — forked from mrbobbybryant/gist:83c4a076da6dd67de3da
Properly enqueue bootstrap into WordPress
<?php
/**
* Enqueue scripts and styles
*/
function electro_child_enqueue_scripts() {
wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.css', array(), 20141119 );
}
add_action( 'wp_enqueue_scripts', 'electro_child_enqueue_scripts' );
@anastransvelo
anastransvelo / scripts.js
Last active March 20, 2019 19:25 — forked from ibndawood/scripts.js
Electro - Clickable parent menu
jQuery(document).ready(function($){
if (jQuery(window).width() >= 1025){
$(".secondary-nav .dropdown-toggle").click(function () {
var addressValue = $(this).attr("href");
location.href=addressValue;
console.log(addressValue );
});
};
});
@anastransvelo
anastransvelo / functions.php
Last active March 20, 2019 19:26 — forked from ibndawood/functions.php
Electro - Product Image Flipper compatibility
add_action( 'init', 'ec_child_remove_pif_actions', 20 );
add_filter( 'electro_template_loop_product_thumbnail', 'ec_child_append_second_product_thumbnail', 20 );
function ec_child_remove_pif_actions() {
global $WC_pif;
remove_action( 'woocommerce_before_shop_loop_item_title', array( $WC_pif, 'woocommerce_template_loop_second_product_thumbnail' ), 11 );
}
function ec_child_append_second_product_thumbnail( $thumbnail ) {