Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

How to pass extra variables in URL with WordPress

How to pass extra variables in URL with WordPress

In this tutorial we are going to learn How to pass extra variables in URL with WordPress ? We have to pass  two variables named domain and price. So we need to use url like


First we have to create a page name called Get Domain (which will create url http://localhost/worpress/get-domain/), now in Page add add a custom wordpress shortcode


Now add code give below in your functions.php and check

// domain details
function price_query_vars( $qvars ) {
$qvars[] = 'price';
return $qvars;
add_filter( 'query_vars', 'price_query_vars' );

function domain_query_vars( $qvars ) {
$qvars[] = 'domain';
return $qvars;
add_filter( 'query_vars', 'domain_query_vars' );

function sp_request_parameter() {
//$parameters = get_query_var( 'price', 1 );
if(get_query_var( 'domain', 1 )){
$domain= get_query_var( 'domain', 1 );
$domain= $default;

if(get_query_var( 'price', 1 )){
$price= get_query_var( 'price', 1 );
$price= $default;


$string="<h2>First Year ".$domain." Domain Registration Price: Rs. ".$price."</h2>
<p>Register your ".$domain." Domain before someone else does. </p>";
//$price." ".$domain;

return $string;
add_shortcode('sp_domain_price', 'sp_request_parameter');

How can I add a new Kate project to the Kate editor

How can I add a new Kate project to the Kate editor

If you ever used Kate Editor and love it then next step is to use your next project in Kate . Creating a project or a adding in Kate is not an easy task and you barely get a tutorial that solve you problem unless you go through Kate Application Book. In this tutorial I am going to tell you steps to add a project in Kate and I will provide working screen shot of it.

Folder Structure Screen shot Kate Project :

Suppose we have project called folder named “School WordPress template”, inside this folder, we have our main project folder called “School_Wordpress_template” that have all files and folder. So we have to create file named “.kateproject” file inside “School WordPress template” folder with code given below.

  "name": "Wordpress_Education_Theme"
, "files": [ { "directory": "Wordpress-Education-theme", "filters": ["*.php", "*.css","*.js"], "recursive": 1 } ]

Now open file .kateproject using kate and go to project, you will able to see project files and folder. see the out put below ….


If you want to create .kateproject inside project folder then use code given below

{ "name": "Wordpress_Education_Theme" , "files": [ { "directory": "./", "filters": ["*.php", "*.css","*.js"], "recursive": 1 } ] }


Most used basic Git commands in Programmer’s Life

Most used basic Git commands in Programmer’s Life

If you are programmer or coder then you know to importance of GIT in our live. Git is an important part of daily programming (especially if you’re working with a team) and is widely used in the software industry. In this post I am going to explain the most used Git commands.

Git Commands

Git Clone

Git clone is a command for downloading or cloning existing project’s source code from a remote repository (like Github,Gitlab…). In simple words, Git clone basically makes an identical copy of the latest version of a project in a repository and saves it to your computer.

git clone <https://name-of-the-repository-link>
for Example 
git clone

Connecting to Github

git config --global "email ID"
git config --global user. "username"
for example
git config --global "[email protected]"
git config --global "sonzoy"

Git Status

The git status command is used to display the state of the repository and staging area. Its provides all the necessary information about the current branch.

git status

Git Add

The git add command is used to add file contents to the Index (Staging Area). This command updates the current content of the working tree to the staging area.
To add single file

git add [FILENAME]
for example
git add style.css

To add multiple files

for example
git add style.css bootstrap.js bootstrap.min.css

To add all files and folder

git add *
git add -A

Git Commit

This is maybe the most-used command of Git. Once we reach a certain point in development, we want to save our changes (maybe after a specific task or issue).
We also need to write a short message to explain what we have developed or changed in the source code. The git add command doesn’t change the repository and the changes are not saved until we use git commit.

git commit -a 
or with message in one command
git commit -m "Add bootstrap, jquery"

Git Push

After committing your changes, the next thing you want to do is send your changes to the remote server. Git push uploads your commits to the remote repository.

git push origin branch_name
for example
git push origin main
git push -f origin main

Git pull

The git pull command is used to get updates from the remote repo. This command is a combination of git fetch and git merge which means that, when we use git pull, it gets the updates from remote repository (git fetch) and immediately applies the latest changes in your local (git merge).

git pull origin branchname
for example
git pull  origin main

If you getting merge error while push then try commands given below

# suppose branch name is  main
git config pull.rebase false
git checkout main
git merge main
git pull origin main

Holi best wishes, status, Shayeri in Hindi

Holi best wishes, status, Shayeri in Hindi

In this post, we are going to share Holi best wishes, Whats app Status, Shayeri based on Holi, Holi Messages

Holi ( /ˈhoʊliː/) is a popular ancient Hindu festival, also known as the “festival of love”, the “festival of colours”, and the “festival of spring”. The festival celebrates the eternal and divine love of Radha and Krishna. It also signifies the triumph of good over evil.”

आपको और आपके परिवार को होली की हार्दिक शुभकामनाएं

ये रंगो का त्यौहार आया है,
साथ अपने खुशियाँ लाया है,
हमसे पहले कोई रंग न दे आपको,
इसलिए हमने शुभकामनाओं का रंग,
सबसे पहले भिजवाया है

राधा का रंग और कान्हा की पिचकारी प्यार के रंग से रंग दो दुनिया सारी
यह रंग ना जाने कोई जात ना कोई बोली मुबारक हो आपको रंगों भारी होली

आपको और आपके परिवार को होली की खुब सारी शुभकामनाये
इसी दुआ के साथ आपके व आपके परिवार के साथ
सभी के लिए सुखदायक, मंगलकारी व आन्नददायक हो। होली की खुब सारी शुभकामनाये….

तुम भी झूमे मस्ती में,
हम भी झूमे मस्ती में,
शोर हुआ सारी बस्ती में,
झूमे सब होली की मस्ती में… हैप्पी होली

प्यार के रंगों से भरो पिचकारी
स्नेह के रंगों से रंग दो दुनिया सारी
ये रंग न जाने न कोई जात न बोली
सबको हो मुबारक ये हैप्पी होली
होली के शुभकामना संदेश

गुलाल का रंग, गुब्बारों की मार,
सूरज की किरणे,खुशियों की बहार,
चाँद की चांदनी, अपनों का प्यार,
मुबारक हो आपको रंगों का त्यौहार.

निकलो गलियों में बना कर टोली,
भिगा दो आज हर एक की झोली,
कोई मुस्कुरा दे तो उसे गले लगा लो,
वरना निकल लो, लगा के रंग कह के हैप्पी होली..

ऐसे मनाना होली का त्योहार,
पिचकारी से बरसे सिर्फ प्यार,
ये है मौका अपनों से गले मिलाने का,
तो गुलाल और रंग लेकर हो जाओ तैयार…


How to create Animate Text with SVG and CSS

How to create Animate Text with SVG and CSS

In this tutorial we going to create a Animate Text with SVG and CSS . Every one want something unique in their website, some one go for clean design , some people prefer colorful and vivid design and some want animation and effects. In this tutorial we are using word “Codentricks” and will animate with infinite loop.

Full Code for Animate Text with SVG and CSS :

create a file called index.html with code given below and save it and launch in any modern web browser.

<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animated Text</title>
<svg viewbox="0 0 1350 650">
<text x="50%" y="50%" fill="transparent" text-anchor="middle">
svg text{
font-size: 150px;
font-family: Arial,Times,serif;
font-weight: 700;
animation: animateText 6s infinite;
@keyframes animateText {
stroke-dasharray:0 50%;
stroke-dasharray:50 0%;

OUTPUT Animate Text with SVG and CSS :


Class 12 computer science with python question paper with solution

Class 12 computer science with python question paper with solution

In this post I am going solve Class 12 Computer Science with Python Important question and their solution with proper explanation. CBSE’s Class 12 Computer Science with Python sample paper can be downloaded from their official website

1 . What is the full form of IDLE ? (Marks =1)

Answer : Integrated Development and Learning Environment.
Note : IDLE (Integrated Development and Learning Environment) is an integrated development environment (IDE) for Python. The Python installer for Windows contains the IDLE module by default. If you running Linux you have to install IDLE Separately.

2. Given the list L=[1,2,5,9,10,11,75,85,24]
What will be output of
print(L[3:5])  (Marks =1)

Answer : [9, 10]
Note : It will return fourth, and fifth item.

3. Find the valid identifier from the following
a) S-name b) True c) 2ndName d) A_name (Marks =1)

Answer : d) A_name
Note : Variable name can’t start with any digit(1,2,3..), should not have (-) and white space.

4. Suppose a tuble Tup declared as
Which of following in incorrect ? (Marks =1)
a) print(Tup[1]) b) Tup[2]=90 c) print(min(tup)) d) print(len(tup))

Answer : b) Tup[2]=90
Note : a) print(Tup[1]) will output 15, c) print(min(tup)) output 12 and
d) print(len(tup)) output

5. What is full form of “URL”? (Marks =1)

Answer :  Uniform Resource Locator
Note : The link address on the internet is the URL. The URL was introduced in 1994 by Tim Berners-Lee as well as the Working Group on Internet Engineering.

6. Differentiate between the round() and floor() functions with the help of suitable example. (Marks =1)

Answer :  The function round() is used to convert a fractional number into whole as the nearest next whereas the function floor() is used convert to the nearest lower whole number, e.g.,
round (6.6) = 7, round (5.1) = 6 and floor (6.6) = 7, floor (6.45) = 6

7. Name the Python Library modules which need to be imported to invoke the following functions : (Marks =2)
a) sqrt(), b) dump()

Answer :  a) math , b) pickle

How to install Epson L220 Driver on any Linux

How to install Epson L220 Driver on any Linux

If you have a Epson printer L220 and want drivers for Linux (Ubuntu, Opensuse, Fedora …) then this tutorial can help you. First you have to download Epson L220 printer driver and also scanner driver and install on your OS.

Download EPSON L220 Linux Printer Driver :

For Debian and Ubuntu based distro Download epson-printer-utility_1.1.1-1lsb3.2_amd64.deb

For Redhat based Distro Like OpenSuse, Fedora … Download epson-printer-utility-1.1.1-1lsb3.2.x86_64.rpm

Note : After Installing you will able to get Epson l220 instead select or search L210 and it will work.

Download EPSON L220 Scanner Driver :

Download imagescan_3.65.0.orig.tar.gz

Write a python program or script to take input for Two numbers and an Operator

Write a python program or script to take input for Two numbers and an Operator

Question : Write a python program or script to take input for Two numbers and an operator (+ , – , * , / ) and Based on the operator calculate and print the result? This question can be asked in CBSE Class XII Computer science with Python Paper.
Code : Please follow the code given below

# Write a python program to take input for Two numbers and
# an operator (+ , – , * , / ) and
# Based on the operator calculate and print the result?

x=int(input("Enter Number one : "))
y=int(input("Enter Number Two : "))
op=input("Enter Operator (+,-,*,/) : ")

print("Sum = ",z)
print("Product = ",z)
print("Difference = ",z)
print("Division = ",z)
print("Invalid operator")

Output :

Python script for calculation using operator

KDE Plasma Desktop Commands

KDE Plasma Desktop Commands

In this post we are going to learn some KDE Plasma Desktop specific commands to get information like KDE Framework , Plasma Desktop version , OS information and tons more.

Operating System all release details :

If you want to know OS release details then Open Konsole and Run commands below (It will work for Other DE also)

Command 1 : 

cat /etc/os-release

Command 2 (only OS like “Ubuntu”) :

cat /etc/os-release | head -1 | tail -1 | awk -F"=" '{print $2}'

Command 3 (pretty name like “Ubuntu 20.04.2 LTS” ) :

cat /etc/os-release | head -5 | tail -1 | awk -F"=" '{print $2}'

Command 4 :

lsb_release -a

Command 5 :


KDE Plasma Version
If you want to know Plasma Desktop Version and run commands below

Command 1 :

plasmashell --version 

Command 2 :

dpkg -l | awk -F"[:-]" '/plasma-desktop\s/{print $3}'

Command 3 :

dpkg -l | grep plasma-desktop\ | awk '{print $3}' | cut -d':' -f2 | cut -d'-' -f1

KDE Frameworks Version command :

kded5 --version

Kate Version command :

kate --version

Konsole Version command :

konsole -v

How to Use WordPress Customizer in your Theme

How to Use WordPress Customizer in your Theme

WordPress comes with a built-in theme customizer that allows to take your WordPress Theme to the next level. Using Customizer you can change your Site Title and Tagline, add Widgets to a Sidebar or Footer, create Custom Menus, change your Homepage Settings, and more with realtime view.

For example we are going to create a panel “Social Links” then can be accessible from Dashboard go Apearance->Customize. For thiswe have put the code given below in your theme’s functions.php

function theme_customize_function($wp_customize){

    'title'=>'Social Icons',
    'description'=> 'Set Social Media Url here',
    'priority'=> 100,
     'title'=>'Social Url',
     'description'=>__('Set Social Media Url here'),
        'default'=>_('Facebook Url'),
        'label'=>'Facebook Url',
        'default'=>_('Youtube Url'),
        'label'=>'Youtube Url',
        'default'=>_('Linkdin Url'),
        'label'=>'Linkedin Url',


Now if you want show it in footer, just copy the code below and paste in footer.php.

<a target="_blank" class="soc_facebook" href="<?php echo get_theme_mod('sp_social_facebook');?>" rel="nofollow">Facebook</a>
<a target="_blank" class="soc_youtube" href="<?php echo get_theme_mod('sp_social_youtube');?>" rel="nofollow">YouTube</a>
<a target="_blank" class="soc_linkedin" href="<?php echo get_theme_mod('sp_social_linkedin');?>" rel="nofollow">Linkedin</a>
Do you have any Query / Suggestion