Error establishing database connection

By | September 13, 2022

Problem: Are you facing an issue “Error establishing database connection” while installing WordPress? Solution: Just reconfirm the following database details in wp-config file, DB_NAME , DB_USER, DB_PASSWORD, DB_HOST Note: If you are trying to install WordPress on localhost, then mostly DB_USER name is “root” and DB_PASSWORD is ” ” empty.  

Adding a widget template in WordPress

By | July 31, 2021

Widget templates in WordPress are particularly coded for showing the widget data on any page by assigning the widget template to that page easily, you can also show more data to that page by using any page builder, or by adding other stuff to that particular widget. You can get all the data and information… Read More »

How to add contact form 7 inside a custom function?

By | March 23, 2021

Here is a rough example for using contact form 7 inside a filter hook. add_filter( ‘wpcf7_validate_tel*’, static function ($result, $tag) { // Conditional logic that used to be in the function $url = home_url(add_query_arg(null, null)); if (!(strpos($url, ‘id’) && strpos($url, ‘form_id’))) { // This is the original callback, now moved here. // Assign the result… Read More »

Iphone xr media query css

By | November 16, 2020

Hello, Are you are facing any design issue on your website while using iPhone XR? or worried about how to fix that issue? I have a solution for you through which you can easily fix the website responsive issue for your iPhone XR view. Most of the famous browsers don’t include an iPhone XR emulator… Read More »