This note is for Learning purpose only
Continue reading “Notes on Swati Nakshatra”Author: allaboutbasic
Optimize Press SmartTheme Shows something at the bottom of single post and just above footer
So client wanted to show his script ( form optin script) to be showing in single post page at the very bottom and just above the footer in full width …

Showing product Variation in Elementor made single product page
Basically client was using variation swatch plugins and using elementor plugins to create single product template, so to show the product variation in that template I faced little issue but at last found how to show it,
Continue reading “Showing product Variation in Elementor made single product page”Notes on Saturn 9th house
Here i have shared about the basic result of Lord Saturn in 9th house. It may vary based on the rashi and aspects on 9th house.
Continue reading “Notes on Saturn 9th house”Install Free SSL to your domain in Hostinger VPS using terminal and SSH
Basically my client’s ssl was expired, he was using hostinger vps and i have helped him to install a new free ssl to his domain ( hosted in vps) using ssh and terminal.
Here are the steps. Just use the codes i shared step by step.
At First login to SSh
Continue reading “Install Free SSL to your domain in Hostinger VPS using terminal and SSH”Notes on Lord Saturn
This note is collected from Lunar Astro Facebook Group and from this post. So this post is only for learning purpose.
In BPHS there is a sloka which indicates that “Grief will not be there if Saturn is bereft of strength”
Here are some of the comments about Lord Saturn-
Redirect All 404 Error page to Homepage Without Plugins
So, here is the code which you need to put in your theme’s function.php and save it and you are done. Basically here i tried not to use plugins and did it simplest way.
function redirect_404_to_homepage() {
if (is_404()) {
wp_redirect(home_url('/'));
exit;
}
}
add_action('template_redirect', 'redirect_404_to_homepage');
Decorator Design Pattern
Suppose you know how to create plain Dohsa ( Dohsa class) , and you wanted to add flavor to it. You are thinking to prepare MasalaDohsa and OnionDohsa from this plain Dohsa.
So instead of modifying the main Dohsa class, you can add OnionDohsa and MasalaDohsa class which will extend dohsaDecorator class and add the flavor on the main plain Dohsa.
Continue reading “Decorator Design Pattern”How to use Try, Catch, Finally : Exceptions in PHP
Suppose you are creating Participants Class where only participants of age 12 are eligible. So you have to use Try, Catch and Finally(optional) to throw exception if age is greater than 12 or less than 12. Here is an example which you can see.
Continue reading “How to use Try, Catch, Finally : Exceptions in PHP”Dhatu, Mool and Jeeva in astrology
This note is collected from Lunar astro Facebook group. This is fully for study and research purpose.
Continue reading “Dhatu, Mool and Jeeva in astrology”