| There is an open issue here: jquery/jquery#2871
// Passive event listeners
jQuery.event.special.touchstart = {
setup: function( _, ns, handle ) {
this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
| There is an open issue here: jquery/jquery#2871
// Passive event listeners
jQuery.event.special.touchstart = {
setup: function( _, ns, handle ) {
this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
We change the styling of the horizontal scrollbar in our responsive table and also add a text indicating that the user can scroll horizontaly. The Text indicator is only visible in mobile devices.
/* BS Responsive table indicator */
::-webkit-scrollbar {
height: 6px; /* height of horizontal scrollbar */
border: 1px solid #333; /* border of horizontal scrollbar */
background: #333; /* bg color of horizontal scrollbar */
Pivot tables can be confusing and a little hard to wrap your head around at first. In this quick article we are going to dive into what a pivot table is, how to create one and finally how to use the pivot table. Let's dive in!
A pivot table is used to connect relationships between two tables. Laravel provides a Many To Many
relationship where you can use a pivot table.
If you’re not the type of person that likes doing solo projects, you could always choose to contribute to open source. It might seem scary at first sight but there are lots of projects that could use a little help.
If you don’t feel comfortable enough to submit pieces of code, that’s fine. Contributing can be as simple as checking a pull request.
Pick a project you like and start helping people out!
<?php | |
/************************************************************************ | |
* Changes the redirect URL for the Return To Shop button in the cart. | |
***********************************************************************/ | |
function cds_wc_empty_cart_redirect_url() { | |
return 'https://www.example.gr/some/custom/url'; | |
} | |
add_filter( 'woocommerce_return_to_shop_redirect', 'cds_wc_empty_cart_redirect_url', 20 ); |
** WP - Optimizations, Security hardening and Cleanup **
Here you can find a a list of WP optimization and cleanup functions and methodology.
1. .htaccess
** Security **
- Disable the server signature
- Disable directory browsing
- Force https to your site.
Create an empty git repo or reinitialize an existing one
$ git init