Skip to main content

functions.php

functions.php

/* * * * * * * * * * * 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

https://www.hostinger.co.uk/tutorials/wordpress/how-to-change-wordpress-urls-in-mysql-database-using-phpmyadmin   Enter the following SQL query: UPDATE wp_options SET option_value = replace(option_value, ‘oldurl.com’, ‘newurl.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;UPDATE wp_posts SET guid = replace(guid, ‘oldurl.com’,‘newurl.com’);UPDATE wp_posts SET post_content = replace(post_content, ‘oldurl.com’, ‘newurl.com’); UPDATE wp_postmeta SET meta_value = replace(meta_value,‘oldurl.com’,‘newurl.com’); Replace oldurl.com with your current WordPress address and newurl.com with your new WordPress address. Your table prefix […]

How to fix Unidentified Network in Windo...

How to fix Unidentified Network in Windows 10/8/7

https://www.thewindowsclub.com/fix-unidentified-network-windows 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

https://www.digicert.com/ssl-support/apache-multiple-ssl-certificates-using-sni.htm 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 192.168.1.1:443> ServerName www.domain.com 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 192.168.1.1:443> ServerName site2.domain.com […]

How to fix WordPress permalinks not work...

How to fix WordPress permalinks not working (Posts returning 404 error)

https://www.techiediaries.com/wordpress-permalinks-not-working-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 […]

Create wordpress multisite

Create wordpress multisite

Create A Network Languages: বাংলা • English • Français • A Network 日本語 Português do Brasil • Português • Русский • ไทย • 中文(简体) • Español • (Add your language) WordPress includes the ability to create a network of sites by using the multisite feature. This article contains instructions for creating a multisite network. A multisite network can be very similar to your own personal version of WordPress.com. End users of your network can create their own sites on demand, just […]