Browser css compatibility
Disable safari select fields css to avoid unparalleled height of your form fields.
select {
-webkit-appearance: none;
}
How to get Vimeo video thumbnails? You can use the Vimeo thumbnail generator http://video.depone.eu/ or a PHP code below. $video_id= 6271487; $url = 'http://vimeo.com/api/v2/video/'.$video_id.'.php'; $response = unserialize(file_get_contents($url)); $video_title = $response[0]['title']; $lightbox_thumb = $response[0]['thumbnail_large']; // Try to print the $response to see all parameters. // print_r($response);
var keys = [37, 38, 39, 40]; function preventDefault(e) { e = e || window.event; if (e.preventDefault) e.preventDefault(); e.returnValue = false; } function keydown(e) { for (var i = keys.length; i–;) { if (e.keyCode === keys[i]) { preventDefault(e); return; } } } function wheel(e) { preventDefault(e); } function disable_scroll() { if (window.addEventListener) { window.addEventListener('DOMMouseScroll', wheel,…
JS Composer shortcode is not working outside the loop, sometimes the JS file is not enqueue to your front end page. Mine is I’m using the Ultimate_VC_Addons and I found the ultimate.min.js and ultimate.min.css is not enqueue to the page. To fix the error, copy this code to your functions.php add_action( 'wp_enqueue_scripts', 'ac_wp_enqueue_scripts' ); function…
Warning: sprintf(): Too few arguments in \wp-admin\includes\class-bulk-upgrader-skin.php on line 152 error from TGM Plugin Activation. To fixed this error is just need to edit the files describe on the screenshot. To edit just fine the `skin_update_successful` just like the image below. Make sure to remove the `onclick=”%2$s”` codes on 2 elements. Make sure you are…
Using Gravity Form, before I having a hard time getting the `Password` value to be included in my notification email. I have read this post How to Include a Password Field in a User Notification with Gravity Forms but it seems not working perfectly to my end. I have created an alternative way of tracking…
How to add, remove, replace a classes in image using the_post_thumbnail()? Let’s say we have this classes in image object. <img class="attachment-to-be-replace size-to-be-replace wp-post-image" src="https://www.anthonypagaycarbon.com/wp-content/uploads/image.jpg" alt="" width="800" height="600" > To replace the class name “to-be-replace”, copy this code to your functions.php add_filter( 'wp_get_attachment_image_attributes', function($attr){ $attr['class'] = str_replace( 'to-be-replace', 'hello-world', $attr['class'] ); return $attr; }); Output…
You’re a among a form blogger in this field. Keep up the work. It’ll pay off.
Wow, it’s no surprise why you’ve so many people following you online.