Skip to content

Instantly share code, notes, and snippets.

View younes-dro's full-sized avatar
🏡
Working from home

WordPress | React | Gutenberg Developer younes-dro

🏡
Working from home
View GitHub Profile
@BFTrick
BFTrick / woocommerce-remove-from-price.php
Last active August 5, 2021 07:52
Disable the WooCommerce variable product "From: $X" price.
<?php
/**
* Plugin Name: WooCommerce Remove Variation "From: $XX" Price
* Plugin URI: https://gist.github.com/BFTrick/7643587
* Description: Disable the WooCommerce variable product "From: $X" price.
* Author: Patrick Rauland
* Author URI: http://patrickrauland.com/
* Version: 1.0
*
* This program is free software: you can redistribute it and/or modify
<?php
$args = array(
'label' => '', // Text in Label
'class' => '',
'style' => '',
'wrapper_class' => '',
'value' => '', // if empty, retrieved from post meta where id is the meta_key
'id' => '', // required
'name' => '', //name will set from id if empty
@younes-dro
younes-dro / wp add age slug in body css class
Created September 3, 2019 23:02
Add page slug in body css class
/**
* Add page slug in body class
*
* @global type $post
* @param string $classes
* @return string
*/
//Page Slug Body Class
function add_slug_body_class( $classes ) {
@younes-dro
younes-dro / custom widget glyph icon
Created September 6, 2019 00:41
generate custom widget glyph icon using Sass : loop , mixin , map
@mixin sidebar-title-icon($content){
.widget-title{
&::before{
font-family: "Ionicons";
content: $content;
display: inline-block;
margin: 0 10px 0 0;
}
}
}