Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Ibrahim ibndawood

💭
I may be slow to respond.
Block or report user

Report or block ibndawood

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ibndawood
ibndawood / functions.php
Created Dec 20, 2019
Electro v2 - Disable Footer Widgets in Home page only
View functions.php
add_action( 'electro_before_footer_v2', 'ec_child_disable_footer_in_home', 30 );
function ec_child_disable_footer_in_home() {
if ( is_front_page() ) {
remove_action( 'electro_footer_v2', 'electro_footer_widgets_v2', 10 );
remove_action( 'electro_footer_v2', 'electro_footer_divider_v2', 20 );
remove_action( 'electro_footer_v2', 'electro_footer_bottom_widgets_v2', 30 );
}
}
@ibndawood
ibndawood / functions.php
Created Dec 13, 2019
Electro v2 - Move single product short description / excerpt below add to cart form
View functions.php
add_action( 'init', 'ec_child_move_short_desc_below_add_to_cart', 10 );
function ec_child_move_short_desc_below_add_to_cart() {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 35 );
}
@ibndawood
ibndawood / functions.php
Created Dec 9, 2019
Electro v2 - Light Off-Canvas Navigation
View functions.php
function electro_off_canvas_nav() {
$classes = '';
if( apply_filters( 'electro_off_canvas_nav_hide_in_desktop', false ) ) {
$classes = 'off-canvas-hide-in-desktop';
}
?>
<div class="off-canvas-navigation-wrapper <?php echo esc_attr( $classes ); ?>">
<div class="off-canvas-navbar-toggle-buttons clearfix">
<button class="navbar-toggler navbar-toggle-hamburger " type="button">
<i class="ec ec-menu"></i>
@ibndawood
ibndawood / functions.php
Created Dec 4, 2019
Jobhunt - Add an image above search form section title
View functions.php
add_action( 'jobhunt_home_page_header_before', 'jh_child_add_logo', 10 );
function jh_child_add_logo() {
?><div><img src="https://placehold.it/200x150" alt="Logo" style="display: block; margin: 0 auto 10px;" /></div><?php
}
@ibndawood
ibndawood / functions.php
Created Nov 27, 2019
Electro v2 - Do not show WooCommerce results count
View functions.php
function woocommerce_result_count() {}
@ibndawood
ibndawood / functions.php
Created Nov 19, 2019
Electro v2 - Move single product description/excerpt above add to cart
View functions.php
add_action( 'init', 'ec_child_move_short_desc_below_price', 10 );
function ec_child_move_short_desc_below_price() {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 28 );
}
@ibndawood
ibndawood / functions.php
Last active Nov 5, 2019
Electro v2 - Advanced Woo Search Integration
View functions.php
function electro_navbar_search() {
if ( ! apply_filters( 'electro_use_third_party_navbar_search', false ) ) {
electro_get_template( 'sections/navbar-search.php' );
} else {
do_action( 'electro_navbar_search_third_party' );
}
}
if ( ! function_exists( 'electro_is_advanced_woo_search_activated' ) ) {
function electro_is_advanced_woo_search_activated() {
View functions.php
add_action( 'init', 'electro_aws_search_form_hooks' );
if ( ! function_exists( 'electro_aws_search_form_hooks' ) ) {
function electro_aws_search_form_hooks() {
add_filter( 'electro_use_third_party_navbar_search', '__return_true', 10 );
add_action( 'electro_navbar_search_third_party', 'electro_aws_search_form', 10 );
}
}
if ( ! function_exists( 'electro_aws_search_form' ) ) {
@ibndawood
ibndawood / functions.php
Created Nov 4, 2019
Pizzaro - Disable hover area in product loop
View functions.php
function pizzaro_template_loop_hover(){}
@ibndawood
ibndawood / functions.php
Created Oct 29, 2019
Electro v2 - Disable header tooltip
View functions.php
add_filter( 'electro_header_tooltip_placement', '__return_false', 100 );
You can’t perform that action at this time.