How To Fix Defer Parsing of Javascript Warning in WordPress Using Async

You can do defer JS in WordPress and that is by editing your theme’s functions.php file. Simply copy the code below and paste it at the bottom of your theme’s function.php file: function defer_parsing_of_js ( $url ) {   if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;   if ( strpos( $url, …

Fixing brute force login attempts in wordpress websites

Brute force attack on wordpress website comes from 2 ways. 1) Through “xmlrpc.php” Solution -> Add a plugin (https://wordpress.org/plugins/disable-xml-rpc/) for disabling it. Don’t do this manually by custom code because we don’t want it to be disabled completely. It is used with some plugins such as “Jetpack”. Source of solution -> https://www.hostinger.in/tutorials/xmlrpc-wordpress 2) Through “wp-login.php” …

Timeout Import All Import

If its timing out contact wpengine support and ask them Disable and add script WPE Governor After the import contact them again and : ‘Reanable the Apache Killscript’ and ‘Remove the define in the wp-config file that toggles off the WPE Governor’

Divi Thumbnail Sizes

// Thumb sizes    ‘400×250’  => ‘et-pb-post-main-image’,    ‘1080×675’ => ‘et-pb-post-main-image-fullwidth’,    ‘400×284’   => ‘et-pb-portfolio-image’,    ‘510×382’   => ‘et-pb-portfolio-module-image’,    ‘1080×9999’ => ‘et-pb-portfolio-image-single’,    ‘400×516’   => ‘et-pb-gallery-module-image-portrait’,     ‘2880×1800’ => ‘et-pb-post-main-image-fullwidth-large’,

Divi Mega Menu

https://www.elegantthemes.com/documentation/divi/mega-menus/   Divi Mega Menu Collapsable :   (function($) {   function setup_collapsible_submenus() {     var $menu = $(‘#mobile_menu’),         top_level_link = ‘#mobile_menu .menu-item-has-children > a’;              $menu.find(‘a’).each(function() {                  if ( ! $(this).siblings(‘.sub-menu’).length ) {             $(this).on(‘click’, function(event) {                 $(this).parents(‘.mobile_nav’).trigger(‘click’);             });         } else {             $(this).siblings(‘.mobile-toggle-icon’).on(‘click’, function(event) {                 event.preventDefault(); …