Skip to content

Instantly share code, notes, and snippets.

View abubackerbsc's full-sized avatar

Abu Backer abubackerbsc

View GitHub Profile
@abubackerbsc
abubackerbsc / Function.php
Created April 1, 2020 05:01
Front - Hide Header Search
add_filter( 'front_header_topbar_search_enable', '__return_false' );
@abubackerbsc
abubackerbsc / style.css
Created March 30, 2020 09:29
Front - Custom Logo Size
.u-header__navbar-brand, .u-header__navbar-brand > img {
width: 220px;
}
@media (min-width: 1200px) {
.u-header__navbar-brand, .u-header__navbar-brand > img {
width: 300px;
}
}
@abubackerbsc
abubackerbsc / Function.php
Created March 25, 2020 08:19
Front - Modal user account singup text redirect to my account page
function front_header_user_account_login_form() {
$header_account_view = apply_filters( 'front_header_topbar_user_account_view', 'dropdown' );
?>
<form class="js-validate woocommerce-form woocommerce-form-login login" method="post">
<div id="login" data-target-group="idForm" style="<?php echo esc_attr( ( isset( $_POST['register'] ) || isset( $_POST['recoverPassword'] ) ) ? 'display: none; opacity: 0;' : 'display: block; opacity: 1;' ); ?>">
<?php if ( $header_account_view == 'modal' || $header_account_view == 'sidebar-left' || $header_account_view == 'sidebar-right' ): ?>
<header class="<?php echo esc_attr( $header_account_view == 'modal' ? 'card-header bg-light py-3 px-5' : 'text-center mb-7' ); ?>">
<?php if ( $header_account_view == 'modal' ): ?>
<div class="d-flex justify-content-between align-items-center">
<h3 class="h6 mb-0"><?php echo apply_filters( 'front_user_account_not_login_text', esc_
@abubackerbsc
abubackerbsc / function.php
Created March 20, 2020 11:02
Load Custom Fonts using Child theme in Front
function front_child_scripts() {
wp_enqueue_style( 'front-custom-fonts', get_stylesheet_directory_uri() . '/front-custom-fonts.css' );
}
add_action( 'wp_enqueue_scripts', 'front_child_scripts', 100 );
@abubackerbsc
abubackerbsc / style.css
Last active March 5, 2020 05:49
Front - Dark footer v2 background color change
.site-footer.site-footer__dark.footer-dark-v2 {
background-color: your-color !important;
}
@abubackerbsc
abubackerbsc / index.php
Last active January 17, 2020 13:24
Vodi - Hero slider buy ticket button
function vodi_movies_slider( $args = array() ) {
if( vodi_is_masvideos_activated() ) {
$defaults = apply_filters( 'vodi_movies_slider_default_args', array(
'gallery_title' => '',
'el_class' => '',
'style' => 'style-v1',
'design_options' => array(),
'sliders' => array(),
'carousel_single_args' => array(
.woocommerce-cart .cart_item .product-name .variation {
display: flex;
flex-wrap: wrap;
}
.woocommerce-cart .cart_item .product-name .variation-To,
.woocommerce-cart .cart_item .product-name .variation-Recipient,
.woocommerce-cart .cart_item .product-name .variation-From,
.woocommerce-cart .cart_item .product-name .variation-Message,
.woocommerce-cart .cart_item .product-name .variation-BonusCard {
flex: 0 0 50%;
.handheld-only i,
.handheld-only .search-btn:before {
color: #000 !important;
}
.handheld-only .handheld-header {
background-color: #fff !important;
}
.handheld-only .handheld-header .navbar-toggler-icon {