Skip to main content



/* * * * * * * * * * * Hide add to card buttons for certain products if in category slug = “not_for_sale” * * * * * * * * * * * function themepaint_custom_cart_buttons(){ $product = get_product(); if ( has_term( ‘not-sale-sale’, ‘product_cat’) ){ // removing the purchase buttons remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’ […]

update domain in wordpress using phpmyad...

update domain in wordpress using phpmyadmin   Enter the following SQL query: UPDATE wp_options SET option_value = replace(option_value, ‘’, ‘’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;UPDATE wp_posts SET guid = replace(guid, ‘’,‘’);UPDATE wp_posts SET post_content = replace(post_content, ‘’, ‘’); UPDATE wp_postmeta SET meta_value = replace(meta_value,‘’,‘’); Replace with your current WordPress address and with your new WordPress address. Your table prefix […]

paypal request api signature

paypal request api signature’s how to request API Signature or Certificate credentials for your PayPal account: Log in to your PayPal Live or Sandbox account. Go to  Settings. Click My selling preferences. In the API access section, click Update. Under NVP/SOAP API integration, click Request API credentials. If you have already generated an API Signature, then View API Signature appears. Click that option to view or remove your existing API Signature. […]

Virtual box change screen size

Virtual box change screen size

cd “C:\Program Files\Oracle\Virtualbox” VBoxManage setextradata “Yosemite” VBoxInternal2/EfiGopMode 4 Where N can be one of 0,1,2,3,4,5 referring to the 640×480, 800×600, 1024×768, 1280×1024, 1440×900, 1900×1200       0       1 2   3       4 5 Tutorial by wikigain

How to fix Unidentified Network in Windo...

How to fix Unidentified Network in Windows 10/8/7 At times, you may face an issue with the network connectivity when trying to connect to the network, where the error says “Unidentified network“. While no sure shot solution is available for this, we have compiled an exhaustive list of troubleshooting steps which could help. Please go through the entire list first and then decide […]

multiple ssls for sub domain in apache

multiple ssls for sub domain in apache If you have a Wildcard or Multi-Domain SSL Certificate all of the websites using the same certificate need to reference the same IP address in the VirtualHost IP address:443 section like in the example below: <VirtualHost> ServerName DocumentRoot /var/www/ SSLEngine on SSLCertificateFile /path/to/your_domain_name.crt SSLCertificateKeyFile /path/to/your_private.key SSLCertificateChainFile /path/to/DigiCertCA.crt </VirtualHost> <VirtualHost> ServerName […]

How to fix WordPress permalinks not work...

How to fix WordPress permalinks not working (Posts returning 404 error) I have spent a couple of hours today trying to fix WordPress broken permalinks for posts and categories and maybe other resources . All posts returned 404 errors when I changed the format of my links to the beautiful permalinks instead of classic links with the ugly series of id numbers . Please note […]