HTML5 .js google hosted
html5shiv.googlecode.com/svn/trunk/html5.js
or simply copy the code below and paste it into your header.php
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
add_filter( 'the_content', 'hidden_image_before_content' ); function hidden_image_before_content( $content ){ global $post; if ( is_singular('post') && has_post_thumbnail() ){ $content = preg_replace( "/<p>/", '<p class="hide">' . get_the_post_thumbnail($post->ID, 'full') . '</p><p>', $content, 1 ); } return $content; }
How to check if there is an ajax running on your page? Here’s a code below that can help you figure it out. jQuery( document ).ready(function($) { $(document).ajaxStart( function() { console.log('ajax true' ); }).ajaxStop( function() { console.log('ajax false' ); }); });
Override rtMedia media-gallery.php template into current WordPress theme is now not a problem. For example you have artist role in your users and you want different template for the artist role. This apply in `http://www.sample.com/members/artist/media/music/` page. add_filter( 'rtmedia_template_filter', 'rtmedia_template_filter_override', 10, 3 ); function rtmedia_template_filter_override( $template ){ global $bp; $role = get_user_meta( $bp->displayed_user->id, 'wp_capabilities', true );…
🚀 Learn How to Create a Section Using Elementor | Web Development for Beginners Welcome to this step-by-step tutorial where you’ll learn how to create a beautiful, responsive section using Elementor – one of the most powerful page builders for WordPress! Whether you’re a beginner in web development or just starting to build your first…
Copy this code and paste to your functions.php function wpa54064_inspect_scripts() { global $wp_scripts; print_r($wp_scripts); // this will show all enqueue’s script } add_action( ‘wp_head’, ‘wpa54064_inspect_scripts’ );
In this first part of my debugging series, I dive into the issues plaguing my mobile navigation menu. From unresponsive toggles to hidden elements, join me as I walk through my thought process, inspect code, and start patching up what’s broken. Perfect for developers troubleshooting similar mobile UI headaches. #Debugging #MobileMenuFix #ResponsiveDesign #webdevolopment #FrontendDev #JavaScriptDebugging…