Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / functions.php
Created May 2, 2024 04:43
Mytravel - Guest picker
function mytravel_guests_picker( $rooms = 1, $adults = 2, $children = 2 ) {
$guests = $adults + $children;
$unique_id = uniqid();
?>
<div class="guests-picker">
<a id="basicDropdownClickInvoker-<?php echo esc_attr( $unique_id ); ?>" class="dropdown-nav-link flex-horizontal-center pt-3 dropdown-toggle pb-2" href="javascript:;" role="button"
aria-haspopup="true"
aria-expanded="false"
data-unfold-event="click"
data-unfold-target="#basicDropdownClick-<?php echo esc_attr( $unique_id ); ?>"
@jmabbas
jmabbas / style.css
Created May 1, 2024 13:57
Electro - Dokan dashboard products mobile view show hidden
@media (max-width: 991.98px) {
.dokan-product-listing .dokan-product-listing-area table.product-listing-table tbody tr td {
display: none !important;
}
.dokan-product-listing .dokan-product-listing-area table.product-listing-table tbody tr td.column-primary,
.dokan-product-listing .dokan-product-listing-area table.product-listing-table tbody tr.is-expanded td {
display: block !important;
@jmabbas
jmabbas / style.css
Created May 1, 2024 04:50
Hellix - Off canvas Background image and color
@media (max-width: 991px) {
.menu .mobile__background {
background-color: #18130c;
background-image: url(assets/img/patterns/2.png);
}
}
@jmabbas
jmabbas / style.css
Created May 1, 2024 04:40
Hellix - Disable offcanvas in desktop
@media(min-width:1200px){
.header__icons .header__menu {
display: none;
}
}
@jmabbas
jmabbas / style.css
Last active April 29, 2024 13:27
Electro - Password input eye button
span.show-password-input:after{
content: "\f06e";
font-family: 'Font Awesome 6 Free';
}
span.password-input {
position: relative;
display: flex;
flex-direction: column;
}
@jmabbas
jmabbas / functions.php
Created April 24, 2024 08:02
Bookworm - Header v2 Search shortcode
function bookworm_site_search_v2() {
?>
<div class="site-search ml-xl-0 ml-md-auto w-r-100 flex-grow-1 mr-md-5 mt-2 mt-md-0 order-1 order-md-0">
<?php echo do_shortcode('[woocommerce_product_search]'); ?>
</div>
<?php
}
@jmabbas
jmabbas / functions.php
Created April 23, 2024 14:02
Bookworm - Header v2 Search
function bookworm_site_search_v2() {
if ( apply_filters('bookworm_enable_site_search' , true )):
?>
<div class="site-search ml-xl-0 ml-md-auto w-r-100 flex-grow-1 mr-md-5 mt-2 mt-md-0 order-1 order-md-0">
<?php if ( bookworm_is_woocommerce_activated() ) : ?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" class="form-inline my-2 my-xl-0">
<div class="input-group input-group-borderless w-100">
<div class="input-group-prepend mr-0 d-none d-xl-block">
<?php $selected_cat = isset( $_GET['product_cat'] ) ? $_GET['product_cat'] : 0;
$navbar_search_dropdown_text = apply_filters( 'bookworm_navbar_search_category_dropdown_default_text', esc_html__( 'All Categories', 'bookworm' ) );
@jmabbas
jmabbas / functions.php
Created April 23, 2024 07:04
Mytravel - Custom fields tab
add_action( 'mytravel_single_hotel', 'mytravel_single_hotel_activities', 65 );
/**
* Include all your custom code here
*/
if ( ! function_exists( 'mytravel_default_hotel_tabs' ) ) {
/**
* Add default hotel tabs to hotel pages.
*
@jmabbas
jmabbas / text.html
Created April 23, 2024 06:53
Front - Wedocs search form
<div class="gradient-half-primary-v1">
<div class="bg-img-hero-center" style="background-image: url( https://documerge.ai/wp-content/themes/front/assets/svg/components/bg-elements-10.svg );">
<div class="container space-1">
<div class="w-lg-80 mx-lg-auto">
<!-- Input -->
<form role="search" method="get" action="https://documerge.ai/" class="wedocs-search-form input-group input-group-borderless">
<div class="input-group-prepend">
<span class="input-group-text" id="askQuestions">
<span class="fas fa-search"></span>
</span>
@jmabbas
jmabbas / style.css
Created April 17, 2024 05:38
Electro - Single product tab vertical in mobile view
@media (max-width:767px) {
.electro-tabs .ec-tabs {
display: flex;
flex-direction: column;
}
.ec-tabs>li+li {
margin-left: 0;
}