Skip to content

Instantly share code, notes, and snippets.

@akther80
akther80 / functions.php
Last active May 9, 2025 11:18
mytravel - Rearranging search button after naviagtion
add_action('init', 'mytravel_child_rearrange_search_button');
function mytravel_child_rearrange_search_button() {
remove_action( 'mytravel_header_v1', 'mytravel_navbar_search', 30 );
add_action( 'mytravel_header_v1', 'mytravel_navbar_search', 55 );
}
@akther80
akther80 / style.css
Created December 6, 2024 06:04
Geeks- Search box width
@media (min-width: 992px) {
.navbar-expand-lg .search-form .search-field {
min-width: 228px;
}
}
@akther80
akther80 / functions.php
Created November 18, 2024 07:35
Geeks - when a user logs in or signs up with wrong credentials, no error message is
add_action( 'geeks_header', 'geeks_navbar_right_load_login', 91 );
if ( ! function_exists( 'geeks_navbar_right' ) ) {
function geeks_navbar_right() {
if ( geeks_navbar_is_user_profile_info() ) :
if ( is_user_logged_in() ) :
$user = wp_get_current_user();
$avatar = get_avatar( $user->ID, 40, '', '', array( 'class' => 'rounded-circle' ) );
if( geeks_navbar_is_enable_cart() ) {
@akther80
akther80 / content-feedback.php
Last active August 16, 2024 11:47
Cartzilla - WeDocs content feedback file overwrite
<?php global $post; ?>
<div class="feedback-content">
<div class="wedocs-feedback-wrap wedocs-hide-print text-center border-top mt-5 pt-5">
<?php
$positive = (int) get_post_meta( $post->ID, 'positive', true );
$negative = (int) get_post_meta( $post->ID, 'negative', true );
$positive_title = $positive ? sprintf( _n( '%d person found this useful', '%d persons found this useful', $positive, 'cartzilla' ), number_format_i18n( $positive ) ) : esc_html__( 'No votes yet', 'cartzilla' );
$negative_title = $negative ? sprintf( _n( '%d person found this not useful', '%d persons found this not useful', $negative, 'cartzilla' ), number_format_i18n( $negative ) ) : esc_html__( 'No votes yet', 'cartzilla' );
?>
@akther80
akther80 / functions.php
Created June 18, 2024 12:34
Geeks - Hide withdraw section in dashboard
add_filter( 'tutor_dashboard/instructor_nav_items', 'hide_withdraw_menu_item', 10, 1 );
function hide_withdraw_menu_item( $menu_items ) {
if ( isset( $menu_items['withdraw'] ) ) {
unset( $menu_items['withdraw'] );
}
return $menu_items;
}
@akther80
akther80 / style.css
Created June 14, 2024 12:46
Geeks - Dropdown menu in Mobile header width issue
@media (max-width: 991px) {
.navbar-expand-lg .navbar-nav .dropdown-menu {
position: static;
}
}
@akther80
akther80 / functions.php
Created March 4, 2024 12:46
Bookworm - Change OffCanvas title
add_filter( 'bookworm_offcanvas_header_title', 'bookworm_ch_change_offcanvas_title' );
function bookworm_ch_change_offcanvas_title() {
$title = "Enter Your Tile Here";
return $title;
}
@akther80
akther80 / style.css
Created March 4, 2024 07:15
Geeks - Tutor textarea border color not displayed
.tutor-form-control {
border: 1px solid #eae7f5 !important;
}
@akther80
akther80 / style.css
Created February 14, 2024 11:17
Uneno - SIngle product gallery image not displayed
.single-product .product-images-wrapper .woocommerce-product-gallery__image {
flex: none !important;
}
@akther80
akther80 / style.css
Created January 16, 2024 05:14
Tokoo - Flaticon list
.flaticon-place:before { content: "\f100"; }
.flaticon-social-2:before { content: "\f101"; }
.flaticon-twitter-social-logotype:before { content: "\f102"; }
.flaticon-social-1:before { content: "\f103"; }
.flaticon-question:before { content: "\f104"; }
.flaticon-checkmark:before { content: "\f105"; }
.flaticon-close:before { content: "\f106"; }
.flaticon-round:before { content: "\f107"; }
.flaticon-delete:before { content: "\f108"; }
.flaticon-wallet:before { content: "\f109"; }