Skip to content

Instantly share code, notes, and snippets.

View joshapgar's full-sized avatar

Josh Apgar joshapgar

View GitHub Profile
$('.section-7-products-number').each(function () {
$(this).prop('Counter',0).animate({
Counter: $(this).attr('data-stop')
}, {
duration: 2500,
easing: 'easeInOutQuart',
step: function (now) {
now = Number(Math.ceil(now)).toLocaleString('en');
$(this).text(now);
}
<?php
function activate_gutenberg_for_post_type( $is_enabled, $post_type ) {
if ( 'post-type-name-here' == $post_type ) {
return true;
} elseif('page' == $post_type) {
global $post;
$pageTemplate = get_post_meta($post->ID, '_wp_page_template', true);
if($pageTemplate == 'page-template-name-here.php') {
return true;
} else {
<section class="calendar-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="header-wrapper">
This is the header.
</div>
<div class="blocks-wrapper">
<div class="row block-row">
<div class="block block-1">