Skip to content

Instantly share code, notes, and snippets.

View ibndawood's full-sized avatar
💭
I may be slow to respond.

Kader Ibrahim S ibndawood

💭
I may be slow to respond.
View GitHub Profile
@ibndawood
ibndawood / functions.php
Last active January 29, 2020 14:41 — forked from farookibrahim/functions.php
Front - Add Custom Icons to Icon Control
if( ! function_exists( 'front_child_icon_control_custom_icons' ) ) {
function front_child_icon_control_custom_icons() {
$icons_url = get_stylesheet_directory_uri() . '/assets/icons/';
$custom_script = '
var addFilter = wp.hooks.addFilter;
addFilter("frontgb.component.icon.control.fgb.icons", "front-child/icon-control-custom-icons", frontChildIconControlCustomIcons);
function frontChildIconControlCustomIcons(iconsObj) {
iconsObj[ \'fgbCustomIcon1\' ] = {
prefix: \'fgb\',
@ibndawood
ibndawood / script.js
Created January 29, 2018 07:33 — forked from farookibrahim/script.js
Electro - Make parent menu clickable for submenu
jQuery(document).ready(function($){
if (jQuery(window).width() >= 1025){
$('li.dropdown-submenu > a').on('click', function() {
var addressValue = $(this).attr("href");
location.href=addressValue;
});
};
});
@ibndawood
ibndawood / functions.php
Created December 7, 2017 05:55 — forked from farookibrahim/functions.php
Electro Display Brands Logo in Brands Archive Page
function el_display_brand_thumbnail_in_archive() {
$brand_taxonomy = electro_get_brands_taxonomy();
if ( ! is_tax( $brand_taxonomy ) ) {
return;
}
if ( ! get_query_var( 'term' ) ) {
return;
}
@ibndawood
ibndawood / function.php
Last active November 21, 2017 12:09 — forked from anastransvelo/function.php
Techmarket - Add custom search to sportsmarket
function techmarket_header_v9_search() {
add_filter( 'techmarket_enable_search_categories_filter', '__return_false' );
echo '<div class="custom-header-search-bar">';
techmarket_navbar_search();
echo '</div>';
}
add_action( 'techmarket_header_v9', 'techmarket_header_v9_search', 30 );
@ibndawood
ibndawood / function.php
Created November 20, 2017 13:22 — forked from subaida77/function.php
Electro Brands List Pages
if ( ! function_exists( 'electro_brands_list_element' ) ) :
function electro_brands_list_element( $atts, $content = null ){
extract(shortcode_atts(array(
'has_no_products' => false,
'orderby' => 'title',
'order' => 'asc',
), $atts));
$taxonomy_args = array(
'orderby' => $orderby,
@ibndawood
ibndawood / style.css
Created November 20, 2017 06:45 — forked from anastransvelo/style.css
Techmarket : Reivew avatar enable
.commentlist li .comment_container>img, .pings-list li .comment_container>img {
display: block;
width: 50px;
}
@ibndawood
ibndawood / functions.php
Created October 30, 2017 07:34 — forked from farookibrahim/functions.php
Techmarket - Header v1 display top bar left and right
function tm_child_header_v1_top_bar_location( $top_bar_location ) {
return '';
}
add_filter( 'techmarket_header_top_bar_location', 'tm_child_header_v1_top_bar_location' );
@ibndawood
ibndawood / functions.php
Created October 20, 2017 07:07 — forked from farookibrahim/functions.php
Pizzaro - YITH Product Add ons compatibility issue with WC 3.2.x
if ( class_exists( 'YITH_WAPO' ) ) {
function pz_child_yith_pa_comp_fix() {
wp_register_script( 'select2', WC()->plugin_url() . '/assets/js/select2/select2.full.min.js', array( 'jquery' ) );
wp_enqueue_script( 'select2' );
wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full.min.js', array( 'jquery' ) );
wp_enqueue_script( 'selectWoo' );
wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select.min.js', array( 'jquery', 'selectWoo' ) );
@ibndawood
ibndawood / functions.php
Created October 20, 2017 07:07 — forked from farookibrahim/functions.php
Pizzaro - YITH Product Add ons compatibility issue with WC 3.2.x
if ( class_exists( 'YITH_WAPO' ) ) {
function pz_child_yith_pa_comp_fix() {
wp_register_script( 'select2', WC()->plugin_url() . '/assets/js/select2/select2.full.min.js', array( 'jquery' ) );
wp_enqueue_script( 'select2' );
wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full.min.js', array( 'jquery' ) );
wp_enqueue_script( 'selectWoo' );
wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select.min.js', array( 'jquery', 'selectWoo' ) );
@ibndawood
ibndawood / style.css
Created September 14, 2017 08:55 — forked from anastransvelo/style.css
Techmarket - Header Logo Align center
.site-header .desktop-only .row:first-child,
.site-header .desktop-only .techmarket-sticky-wrap .row{
align-items: center;
}