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 / 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 / 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 / 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 / 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
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\',