Advanced Elementor Code[3D] Make a 360 Degree Image Rotation Effect in Elementor Website | WordPress 3D Object/Model Viewer <style> model-viewer{ width:100%; height: 100vh; } @media (max-width: 1024px) { model-viewer{ height:600px; } } @media (max-width: 767px)...Aug 2, 2022 · 1 min readdev.sbkits.com.my
General WordPress SnippetEnable WordPress maintenance mode Code Snippet: PHP <?php // Activate WordPress Maintenance Mode function ess_wp_maintenance_mode() { $posts = get_posts(array( 'posts_per_page' => -1, )); if (!current_user_can('edit_themes') || !...Jul 29, 2022 · 1 min readdev.sbkits.com.my
Elementor Snippets & HacksShow when scrolling down and hide when scrolling up (Custom sticky header for Elementor) Code Snippet: PHP var prevScrollpos = window.pageYOffset; window.onscroll = function() { var currentScrollPos = window.pageYOffset; if (prevScrollpos > current...Jul 29, 2022 · 1 min readdev.sbkits.com.my
Woo-commerce Snippets & HacksIntroduction Here are some WooCommerce snippets and hacks I've used on most of my sites So, I'd like to share them with everyone. You can either paste them into your theme's functions.php file or better still, use the Code Snippets plugin if you want...Jul 21, 2022 · 3 min readdev.sbkits.com.my