Skip to content

Instantly share code, notes, and snippets.

View mrkkr's full-sized avatar

Marek mrkkr

  • Poland
View GitHub Profile
@mrkkr
mrkkr / searching_custom_fieds.txt
Created December 28, 2017 11:26
Wyszukiwanie po custom fields w WP #link #php
https://adambalee.com/search-wordpress-by-custom-fields-without-a-plugin/
@mrkkr
mrkkr / bootstrap_onhover_dropdown_menu.js
Created December 28, 2017 10:57
Rozwijane bootstrapowe menu po najechaniu #js
$('ul.nav li.dropdown').hover(function() {
$(this).find('.dropdown-menu').stop(true, true).fadeIn(200);
}, function() {
$(this).find('.dropdown-menu').stop(true, true).fadeOut(200);
});
@mrkkr
mrkkr / mouseenter_change_bootstrap_tabs.js
Last active December 22, 2017 13:23
Zmiana Bootstrapowych tabsów po najechaniu myszką #js
$(document).on('mouseenter', '[data-toggle="tab"]', function () {
$(this).tab('show');
});
@mrkkr
mrkkr / link_text_hover_box_grid.html
Last active December 21, 2017 10:29
Tekst z linkiem onhover na kaflu (gridzie) #html #css
@mrkkr
mrkkr / woocommerce_checkout_custom_fields.txt
Created December 20, 2017 11:56
Woocommerce własne pola w zamówieniu/mailu #php #link
https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
@mrkkr
mrkkr / woocommerce_price_amount_with_tax_currency.php
Last active February 19, 2018 15:10
Woocomerce - cena z podatkiem + waluta #php
<?php echo wc_price($product->get_price_including_tax()); ?>
/// function above is decrapated, used this:
<?php
$global;
$price = $product->get_regular_price();
$suffix = get_woocommerce_currency_symbol();
echo wc_get_price_including_tax( $product, array('price' => $price) ) . $suffix;
@mrkkr
mrkkr / lets_encrypt_ssl_home_tut.txt
Last active December 20, 2017 11:58
Let's Encrypt SSL w home.pl tutorial #link #ssl
https://dominikroszkowski.pl/2017/03/manualne-dodanie-certyfikatu-ssl-od-lets-encrypt-bez-roota-na-serwerze/
@mrkkr
mrkkr / display_hide_col_boot4.txt
Last active December 20, 2017 11:57
Właściwości display w Boot4 #link #html #css #link
https://getbootstrap.com/docs/4.0/utilities/display/
@mrkkr
mrkkr / clear_typing_text_animation.js
Last active December 4, 2017 21:49
Animacja pisania tekstu (bez bibliotek) #js
/*<h1>
<a href="" class="typewrite" data-period="500" data-type='[ "Hi, Im Si.", "I am Creative.", "I Love Design.", "I Love to Develop." ]'>
<span class="wrap"></span>
</a>
</h1>*/
var TxtType = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
@mrkkr
mrkkr / reorder_col_flex_boot4.html
Last active December 4, 2017 11:42
Zmiana kolejności kolumn we Boot4 Flex #html #css
<div class="container">
<div class="row">
/// mobile-first!
<div class="col-3 col-md-6">
<div class="card card-body">1</div>
</div>
<div class="col-6 col-md-12 order-2 order-md-12"> ///kolejność order-*-*
<div class="card card-body">3</div>
</div>
<div class="col-3 col-md-6 order-3">