mdb-ui-kit
mdb-ui-kit copied to clipboard
Disable Ripples?
Is there a way to disable Ripples on an element? (currently it runs on all my a:links)
add class .withoutripple to anchor tag
I'm writing this in case some poor souls happen upon this problem.
There are two methods I'll describe here, assume you want to disable ripples on links inside your .site-header
- the javascript way:
$('.site-header a').off().data('plugin_ripples', null);above call should be made after material-kit.js - the css way
.site-header .ripple-container {display: none;}
- another javascript way
When you initialize bootstrapMaterialDesign you pass an object with ripples set to false:
$('body').bootstrapMaterialDesign({ ripples: false });
@doug-gv
$('.site-header a').off().data('plugin_ripples', null); doesn't work for me but the css works perfectly!
I also tried targeting it different ways.