Category: Widgets
Increase SEO Analyzer TimeOut
add_filter( ‘http_request_args’, ‘aioseo_filter_analyzer_timeout’, 1, 2 ); function aioseo_filter_analyzer_timeout( $args, $url ) { if ( ‘https://analyze.aioseo.com/v1/analyze/’ === $url ) { $args[‘timeout’] = 120; } return $args; – }Continue reading
Show Current Year
function display_year() { $year = date(‘Y’); return $year; } add_shortcode(‘year’, ‘display_year’);Continue reading
Add tracking pixel / javascript on modal checkout complete | Display Eventbrite
add_action( ‘wfea_popup_scripts_enqueued’, function () { $script = ‘ window.onbeforeunload = null; // set to null to avoid a message about leaving the page before saved – use if redirecting wfeaModalCallback = function () { console.log(“There has been an Eventbrite checkout.”);…Continue reading
Add to Theme Master
.staff-bio-section .staff-bio .bio p:first-child { color: var(–secondary-color); font-size: 1.25rem; } .single-staff .text a { color: var(–primary-color); } /* highlight */ .highlight { background: var(–primary-color); padding: 37px 40px; margin: 40px 0px; } .highlight h2:first-child, .highlight h2:first-child { margin-top: 0; color:#fff; }…Continue reading
Combine shortcodes to have more than one month in Fullworks’ Event Manager
add_shortcode( ‘qem_3_months’, function () { $out = ”; $display = \Quick_Event_Manager\Plugin\Core\Utilities::get_instance()->get_display_settings(); $m0 = do_shortcode( ‘[qem id=”current”]’ ); // get the next month numeral $next_month = gmdate( ‘n’, strtotime( ‘+1 month’ ) ); $m1 = do_shortcode( ‘[qem id=’ . $next_month .…Continue reading
Tilt Effect JS
elem = document.getElementsByClassName(‘uk-background-norepeat’); window.addEventListener(‘deviceorientation’, function(e){ handler(e); }, false); function handler(e){ var width = window.outerWidth, rot = e.gamma / 1800, left = ( width / 2 ) * rot; elem[0].style.backgroundPosition = left + ‘px’; }Continue reading
Eriberto23 AI
Buttons Material Design JS
‘use strict’; var rippleEffect = function (e) { var target = e.currentTarget; var ripple = target.querySelector(‘.ripple’); if(ripple){ console.log(‘asdfasdfasfas’); jQuery(ripple).remove(); } var rect = target.getBoundingClientRect(); var rippleNew = document.createElement(‘span’); target.appendChild(rippleNew); rippleNew.className = ‘ripple’; rippleNew.style.height = rippleNew.style.width = Math.max(rect.width, rect.height) + ‘px’;…Continue reading
Buttons Material Design CSS
.uk-button { overflow: hidden!important; -webkit-transition: 0.3s; -moz-transition: 0.3s; -ms-transition: 0.3s; -o-transition: 0.3s; transition: 0.3s; } .uk-button span { pointer-events: none; } .ripple { /* mix-blend-mode: difference; */ position: absolute; background: #000000; border-radius: 100%; transform: scale(0.01); opacity: 0; pointer-events: none; -webkit-animation:…Continue reading