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 May 15, 2020 18:01
Vodi - Remove linking in navbar-brand logo in Header
function vodi_header_logo() {
?><div class="site-header__logo"><?php
if ( has_custom_logo() ) {
$html = '';
$custom_logo_id = get_theme_mod( 'custom_logo' );
if ( $custom_logo_id ) {
$custom_logo_attr = array(
'class' => 'custom-logo',
);
@ibndawood
ibndawood / functions.php
Created May 13, 2020 21:54
Vodi - Remove recommended movies and single movie tabs
add_action( 'masvideos_before_single_movie', 'vd_child_remove_recommended_movies', 20 );
add_action( 'masvideos_before_single_movie', 'vd_child_remove_single_movie_tabs', 20 );
function vd_child_remove_recommended_movies() {
remove_action( 'masvideos_after_single_movie_summary', 'vodi_recommended_movies', 98 );
}
function vd_child_remove_single_movie_tabs() {
remove_action( 'masvideos_after_single_movie_summary', 'masvideos_template_single_movie_tabs', 95 );
}
@ibndawood
ibndawood / functions.php
Created May 13, 2020 21:45
Tokoo Product Categories Filter
$defaults = apply_filters( 'tokoo_product_categories_args', array(
'section_title' => esc_html__( 'Shop By Categories', 'tokoo' ),
'category_args' => array(
'number' => '8',
'columns' => '4',
'slug' => '',
'hide_empty' => 'true',
)
));
@ibndawood
ibndawood / style.css
Created May 13, 2020 18:57
Vodi - Blog Single Post Title size small in mobile
@media( max-width: 768px ) {
.single-article .article__title {
font-size: 24px;
}
}
@ibndawood
ibndawood / functions.php
Created May 13, 2020 18:46
Front - Change the pre text in Single Job v2
add_filter( 'front_single_job_listing_v2_apply_job_form_pretitle_text', 'fr_child_single_job_listing_v2_apply_job_form_pretitle_text', 10 );
function fr_child_single_job_listing_v2_apply_job_form_pretitle_text( $text ) {
return esc_html__( 'Join Amai', 'front' );
}
@ibndawood
ibndawood / functions.php
Created May 13, 2020 17:04
MediaCenter - Single Product Hooks
/**
* Single Product
*/
add_filter( 'woocommerce_sale_flash', 'mc_sale_flash' );
add_filter( 'woocommerce_single_product_carousel_options', 'mc_wc_single_product_carousel_option_remove_thumb' );
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
add_action( 'woocommerce_before_single_product_summary', 'mc_product_summary_wrapper_start', 1 );
add_action( 'woocommerce_after_single_product_summary', 'mc_product_summary_wrapper_end', 1 );
@ibndawood
ibndawood / functions.php
Created May 12, 2020 22:59
Electro v2 - Do not show dropdown in Home v1 for Header v1
add_filter( 'electro_departments_menu_v2_enable_dropdown', 'ec_child_enable_dropdown_header_v1_home_v1', 20 );
function ec_child_enable_dropdown_header_v1_home_v1( $enable_dropdown ) {
if ( is_page_template( 'template-homepage-v1.php' ) ) {
$enable_dropdown = true;
}
return $enable_dropdown;
}
@ibndawood
ibndawood / functions.php
Created May 11, 2020 21:20
Electro v2 - Disable advanced reviews
add_filter( 'electro_use_advanced_reviews', '__return_false', 100 );
@ibndawood
ibndawood / functions.php
Created May 11, 2020 21:15
Electro v2 - Simplified Posts Per Page
function electro_set_loop_shop_per_page() {
$per_page = electro_set_loop_shop_columns() * 4;
$per_page = apply_filters( 'electro_loop_shop_per_page', $per_page );
return $per_page;
}
@ibndawood
ibndawood / functions.php
Created May 6, 2020 11:35
Jobhunt - Header Search Block
function jobhunt_job_header_search_block( $args = array() ) {
$defaults = apply_filters( 'jobhunt_job_header_search_block_args', array(
'section_title' => esc_html__( 'Explore Thousand Of Jobs With Just Simple Search...', 'jobhunt' ),
'sub_title' => '',
'search_placeholder_text' => esc_html__( 'Job title, keywords or company name', 'jobhunt' ),
'location_placeholder_text' => esc_html__( 'City, province or region', 'jobhunt' ),
'category_select_text' => esc_html__( 'Any Category', 'jobhunt' ),
'show_category_select' => false,
'search_button_icon' => 'la la-search',