How to set custom page title for homepage WordPress

Hello friend, welcome to my blog post how to set custom page title for homepage WordPress. When we use a wp_title() function inside title tag and set a custom page template as a front page then we will see a blank page title in your page source code and see your domain name like www.example.com into your page title. So you need to set a custom page title for the homepage. So we can use WordPress filter hook to set page title. The wp_title filter is used to filter the title of the page (called with wp_title()). This filters the text appearing in the HTML title tag (sometimes called the “title tag” or “meta title”), not the post, page, or category title. Read more

How to add CC and BCC mail id in Contact Form 7

Hello friend, welcome to my blog post how to add CC and BCC mail id in Contact Form 7. Contact Form 7 is the most popular dynamic from builder plugin in WordPress. It has all the functionality to manage your form. But do you know how to add CC and BCC email address in Contact From 7. If not then please follow the below instruction to add CC and BCC email address into your form. Read more

Load specific scripts on specific page WordPress

Hello friends, welcome to my another blog post how to load specific scripts on a specific page in WordPress. Suppose you have a google map js script and you want to include it only in contact us page. So what you will do. How you write your code to display it only in contact us page. So now I will discuss page specific condition to solve this kind of problem. Below are some solutions: Read more

How to load Inline Script After main jQuery WordPress

Hello friends, welcome to my another blog post how to load inline script after main jQuery in WordPress. If you want to load your inline scripts after main jQuery then what to do. I had a previous blog how to enqueue inline scripts in header where I show you how to load js script using functions.php. But here I show you a conditional statement. If your main js files load then your inline js will load otherwise not. Some times we have to add some inline js scripts to initialize some js functionality. So we need this types of condition. WordPress has a function wp_script_is to check if a script has been registered, enqueued, printed, or is waiting to be printed. So this function did the trick for me. Read more

How to enqueue inline scripts in header WordPress

Hello friends, welcome to my another blog post how to enqueue inline scripts in header WordPress. Before writing this blog I had a big question in my mind that we can enqueue js, css files using wp_enqueue_script and wp_enqueue_style functions. But If we want to enqueue(add) inline js scripts in our theme’s header file using functings.php the how to do that. How we can enqueue inline js scripts in header? So for you people I have a solution. Please follow the below code: Read more

How to create wordpress custom post search result page template

Hello friends, welcome to my another blog post how to create WordPress custom post search result page template. By default WordPress has a default search form where you can search all site content. But if you want to search only inside a Custom Post then you have to modify the search form. You must add this code to search only inside your custom post . Now come to result page. By default wordpress find search.php to show the search result. If you do not have search.php WordPress then call index.php to show the result. But if you want a custom page template to show the search result then what to do. So today I will guide you step by step how to achieve that. Read more

How to add class and id in form tag Contact Form 7

Hello friends, welcome to my another blog post how to add class and id in form tag Contact Form 7. By default contact form 7 put wpcf7-form class with in form tag and there is no id inside form tag. So if you want to add your own class or own id then what to do. Below I give you the solution for this issue. Using my tips you can give any class or id inside form tag of contact form 7 Read more

How to show WooCommerce newest product reviews on top

Hello friends, welcome to my another blog post how to show WooCommerce newest product reviews on top. By default, WooCommerce display product reviews in ascending order, means old reviews will come at a top and newest reviews will show at last. So if you want to show your newest reviews on top then what to do. You have to change the review’s order. Below I give you the solution for this issue.
Read more

How to set maximum post title length in WordPress

Hello friends, welcome to my another blog post how to set maximum post title length in WordPress. By default, we can put very short or very long title of our WordPress post. There is no restriction from WordPress that you can not put hung post title. But in SEO purpose, we can not set very long for our post. So if you want that your post title should be inside some character length or post title, not more than 60 characters then you are incorrect place. Read more