Skip to content

Instantly share code, notes, and snippets.

View amine-f's full-sized avatar
🎯
Focusing

Amine (AF) amine-f

🎯
Focusing
View GitHub Profile
@amine-f
amine-f / webkit-scrollbar
Created August 19, 2024 18:23
Styling Scrollbars in Chrome, Edge, and Safari Currently, styling scrollbars for Chrome, Edge, and Safari is available with the vendor prefix pseudo-element -webkit-scrollbar. Here is an example that uses ::-webkit-scrollbar, ::-webkit-scrollbar-track, and ::webkit-scrollbar-thumb pseudo-elements:
body::-webkit-scrollbar {
width: 12px; /* width of the entire scrollbar */
}
body::-webkit-scrollbar-track {
background: #e0e0d5; /* color of the tracking area */
}
body::-webkit-scrollbar-thumb {
background-color: grey; /* color of the scroll thumb */
/*Remove WordPress menu from admin bar*/
add_action( 'admin_bar_menu', 'remove_wp_logo', 999 );
function remove_wp_logo( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'wp-logo' );
}
/* Remove WP logo from login page */
function custom_login_logo() {
echo '<style type ="text/css">.login h1 a { display:none!important; }</style>';
}
<div id="register-page" class="page register-page">
<aside class="bp-feedback bp-messages info">
<span class="bp-icon" aria-hidden="true"></span>
<p>Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time.</p>
</aside>
<form action="" name="signup_form" id="signup-form" class="standard-form signup-form clearfix" method="post" enctype="multipart/form-data">
$(document).ready(function(){
$(window).scroll(function(){
var light_pos = $('#white_div').offset().top;
var light_height = $('#white_div').height();
var menu_pos = $('.NavigationButton').offset().top;
var scroll = $(window).scrollTop();
if(menu_pos > light_pos && menu_pos < (light_pos + light_height)) {
$('.NavigationButton').addClass('menu_black');
$('.NavigationButton').removeClass('menu_white');
<div class="elementor-element elementor-element-757f2c elementor-column elementor-col-100 elementor-top-column" data-id="757f2c" data-element_type="column">
<div class="elementor-column-wrap elementor-element-populated">
<div class="elementor-widget-wrap">
<div class="elementor-element elementor-element-4aae1b5 elementor-headline--style-highlight elementor-widget elementor-widget-animated-headline" data-id="4aae1b5" data-element_type="widget" data-settings="{&quot;highlighted_text&quot;:&quot;\u0627\u0644\u062d\u0648\u0643\u0645\u0629 \u0627\u0644\u0645\u062d\u0644\u064a\u0629&quot;,&quot;headline_style&quot;:&quot;highlight&quot;,&quot;marker&quot;:&quot;circle&quot;}" data-widget_type="animated-headline.default">
<div class="elementor-widget-container">
<h3 class="elementor-headline">
<span class="elementor-headline-dynamic-wrapper elementor-headline-text-wrapper"><span class="elementor-headline-dynamic-text elementor-headline-text-active">الحوكمة
<div class="slick-list draggable"><div class="slick-track" style="opacity: 1; width: 5390px; transform: translate3d(770px, 0px, 0px);"><div class="elementor-repeater-item-5dc6afb slick-slide slick-cloned" data-slick-index="-1" aria-hidden="true" style="width: 770px;" tabindex="-1"><div class="slick-slide-bg"></div><div class="slick-slide-inner"><div class="elementor-slide-content" style="display: none;"></div></div></div><div class="elementor-repeater-item-392183e slick-slide slick-current slick-active" data-slick-index="0" aria-hidden="false" style="width: 770px;" tabindex="0" role="tabpanel" id="slick-slide00" aria-describedby="slick-slide-control00"><div class="slick-slide-bg"></div><div class="slick-slide-inner"><div class="elementor-slide-content animated fadeInUp" style="display: block;"></div></div></div><div class="elementor-repeater-item-b9f8f63 slick-slide" data-slick-index="1" aria-hidden="true" style="width: 770px;" tabindex="-1" role="tabpanel" id="slick-slide01" aria-describedby="slick-slide-con
@amine-f
amine-f / gist:237fb6a4295cda0a908e745a661c6048
Created September 19, 2019 13:32
Woocommerce_"add_to_card"_button
<?php
add_filter('woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text');
function woo_custom_cart_button_text()
{
return __('Book Now', 'woocommerce');
}
@amine-f
amine-f / Additional_css+html
Created September 19, 2019 13:30
000webhost_brand
img[src="https://cdn.000webhost.com/000webhost/logo/footer-powered-by-000webhost-white2.png"] {
display: none;
}
/////////////html
<style>
img[src="https://cdn.000webhost.com/000webhost/logo/footer-powered-by-000webhost-white2.png"] {
display: none;
}
</style>