Promote your Service and Product online Contact us

+91 87 44 999667; +91 99 11 883996 info@3pixls.com, sales@3pixls.com

warning: mysql_query(): unable to save result set in wordpress

July 22nd, 2017 by

Warning: mysqli_query(): MySQL server has gone away in siteroot\wp-includes\wp-db.php on line 1878 and Warning: mysqli_query(): Error reading result set’s header in siteroot\wp-includes\wp-db.php on line 1878   Modify your wp-config.php file Open wp-config.php with a text editor such as Notepad. The wp-config.php file is located in your WordPress installation folder in your hosting account. If there […]

Apply Custom CSS to Admin Area

December 14th, 2016 by

Apply Custom CSS to Admin Area Add to the functions.php file: [php] add_action(‘admin_head’, ‘my_custom_fonts’); function my_custom_fonts() { echo ‘<style> body, td, textarea, input, select { font-family: "Lucida Grande"; font-size: 12px; } </style>’; } [/php]

Remove duplicate product link from WooCommerce Page Row Actions

December 12th, 2016 by

[php] function my_duplicate_post_link($actions, $post) { // The following checks WHERE we should run if not products just return if ( $post->post_type != ‘product’ ) { return $actions; } $product = get_product( $post->ID ); unset($actions[‘duplicate’]); return $actions; } // Notice priority changed from default 10 to 15(anything greater than 10) // Priority defines WHEN we should […]

Google Maps API error: MissingKeyMapError

December 9th, 2016 by

Now Google wants an API key to authenticate users to access their APIs`. You can get the API key from the following link. Go through the link and you need to enter a project and so on. But it is easy. Hassle free. https://developers.google.com/maps/documentation/javascript/get-api-key Once you get the API key change the previous [php] <pre><code><script […]

Showing prices without VAT based on roles

November 3rd, 2016 by

Showing prices without VAT based on roles Function that will check for user role and turn off VAT/tax for that role [php] function wc_diff_rate_for_user() { // check for the user role if ( is_user_logged_in() && current_user_can( ‘wholesale_customer’ ) ) { // set the customer object to have no VAT WC()->customer->is_vat_exempt = true; } } add_action( […]


Warning: Undefined variable $additional_loop in /home/pixlscom/public_html/blog/wp-content/themes/3pixelsblog/index.php on line 34

Warning: Attempt to read property "max_num_pages" on null in /home/pixlscom/public_html/blog/wp-content/themes/3pixelsblog/index.php on line 34