sell website making service

How to fix the mouse wheel jumpy lag irresponsive problem

Mouse wheel not working is a very frustrating issue, this is something you have to live with every day. I decided to throw away my 2 mice A4 TECH G3-200N, and Rapoo MT750S.

I was feeling bad that this mouses was not working, rapoo is the expensive one, I thought how come this mouses has the same problem after a few years of usage so I took it as the mouse’s hardware malfunction.

After researching some websites and YouTube videos I came to know this problem is due to dirt that builds up inside the mechanism that responds to the wheel movement.

Clean the Mouse

Dust and dirt can accumulate inside the mouse, affecting the wheel’s functionality. To clean:

Turn off your mouse or unplug it from your computer.
Use a soft cloth or compressed air to remove debris around the wheel.
For more persistent dirt, gently open the mouse case (if it’s not sealed) and clean the internal parts.

So I opened up the mouse and cleaned those parts with alcohol, and it worked, thanks to these 2 videos.

Here at the bottom is my video, of how I cleaned A4 TECH G3-200N mouse and for Rapoo MT750S the procedure is the same as the mechanism is all the same for both the mouse.

How to add a sub menu under Dokan plugin’s vendor dashboard

There is no easy way to add a sub menu under Dokan plugin’s vendor’s dashboard. Dokan is a multi vendor plugin for WooCommerce. I used Woodmart wordpress theme from ThemeForest. You need to know a bit of coding in PHP and understand Dokan plugin documentation to impletlememt a sub menu. Copy paste the below in theme’s function.php file and replace some texts as per your need.

Main Code

function shipping_rules_submenu( $submenu_items, $nav_key ) {
    if ( 'settings' === $nav_key ) {
        $submenu_items = array_merge(
            $submenu_items,
            [
                'shipping_rules' => array(
                    'title'      => __( 'Shipping Rules', 'dokan-lite' ),
                    'icon'       => '<i class="far fa-credit-card"></i>',
                    'url'        => 'put your link',
                    'pos'        => 70,
                    'permission' => 'dokan_view_store_payment_menu',
                ),
            ]
        );
    }

    return $submenu_items;
}

add_filter( 'dokan_dashboard_nav_submenu', 'shipping_rules_submenu', 10, 2 );

Explanation

dokan_dashboard_nav_submenu is the function that does the work. settings is the main menu that will hold the sub menu name “Shipping Rules”. Tweak the code to get desired result.

Does it work? Comment and share if it helps. Follow our blog to Learn more about WordPress

How to add HTML text inside WooCommerce product description tab

On our woocommerce website, we wanted to add text and HTML before and after the product description that is inside the description tab. After applying many PHP codes the below code served our purpose.

Main Code

// add html inside product description tab after main content
function add_in_product_description_tab($content){
  //only add text before WordPress posts
  if( is_product() ){
	  
    $before = '<h3>'.do_shortcode('[product_name id="'.get_the_ID().'"]').'</h3>';
	
    $after = '<div class="dkhmyenr"><h4>of '.do_shortcode('[product_name id="'.get_the_ID().'"]').' in country?</h4><p>The of '.do_shortcode('[product_name id="'.get_the_ID().'"]').' in is <strong>৳'.do_shortcode('[silva_product_price id="'.get_the_ID().'"]').'</strong> You can buy the '.do_shortcode('[product_name id="'.get_the_ID().'"]').' with reasonaover <strong>US</strong>.</p></div>';	
    //modify the incoming content 
    $content = $before . $content . $after; 
  } 
  return $content; 
}  
add_filter( 'the_content', 'add_in_product_description_tab' );

Copy the above PHP code in your theme’s function.php and change text, shortcode, HTML as per your need.

Explanation

With the code above, we are only targeting woocommerce product page, here $before is what you get before the main description and $after is after the product description. It is for all woocommerce products.

This is similar to page and post content, tweak it and apply, but you must know programming or coding to experiment.

Does it work? Comment and share if it helps. Follow our blog to Learn more about WordPress

Check Most Recent Posts