Skip to content

Instantly share code, notes, and snippets.

/* Change background and text color */
.caldera-grid .btn {
background-color:#BD6983 !important;
color:white !important;
font-weight: 900;
}
/* Change background and text color on hover */
.caldera-grid .btn:hover {
background-color:white !important;
/* Float the botton to the right of its column */
.caldera-grid .btn {
float:right;
}
/* Center the button to it's column */
.caldera-grid .btn {
display: block !important;
margin-left: auto;
margin-right: auto;
}
/* Span the full width of the column */
.caldera-grid .btn {
width:100%;
}
<style type="text/css">
.rv_button.closed:after {content:"\33";}
.rv_button.opened:after{content:"\32";}
</style>
<script type="text/javascript">
jQuery(document).ready(function() {
// Hide the div
jQuery('#reveal').hide();
jQuery('.rv_button').click(function(e){
e.preventDefault();jQuery("#reveal").slideToggle();
jQuery('.rv_button').toggleClass('opened closed');
});
});
</script>
# One year for image files
<filesMatch ".(jpg|jpeg|png|gif|ico)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
# One month for css and js
<filesMatch ".(css|js)$">
Header set Cache-Control "max-age=2628000, public"
</filesMatch>
@robhob
robhob / remove-imagezoom-woocom.php
Last active August 18, 2017 06:52 — forked from rynaldos-zz/remove-pgzoom-theme.php
[WooCommerce 3.0+] Remove product gallery zoom feature
add_action( 'after_setup_theme', 'remove_pgz_theme_support', 100 );
function remove_pgz_theme_support() {
remove_theme_support( 'wc-product-gallery-zoom' );
}
<img src="/wp-content/uploads/2017/07/teacup1.png" id="currentImg" alt="Teacup" title="Blue Teacup">