How I joined multiple Bootstrap themes with my official WordPress site

I thought I should write down this without delay and share with my readers. These are bits and pieces of my experiences of writing my official website It was a kind of trial and error method that I had always expected that, well – touch wood, it’d survive somehow.
And it survived the experiments. Google started indexing it and I think the time has also come to play with Google analytic.
Let me finish it very fast and start from the very beginning.
I decided to inject multiple bootstrap CSS styling in my website. It’s a kind of bootstrapping wordpress.
As you know, when you start building a wordpress site from scratch you need few files at the very beginning. They are – style.css and few more PHP files like index, page, home, header, footer, sidebar etc.
I decided to make the front page a static page so I injected a ‘front-page.php’ file in that beginning procedure.
As of now I am keeping three styles – two of them are open source bootstrap theme and the other one is the mystery (please download it from my github repository).
The first step is – make your default style intact so that it does not break.
My ‘style.css’ code:
@import url('css/font-awesome.min.css');
@import url('css/bootstrap.min.css');
@import url('css/animate.css');
@import url('css/style.css');

body {


Next get the link in the ‘header.php’ file:


I don’t want the ‘Home’ navigation in my first page menu bar so just excluded it with a simple code:
wp_list_pages(array('title_li' => '', 'exclude' => 4));
Remember wordpress keeps everything as ‘post’ inside database. My home page post id is 4 and I’m excluding it from the first page navigation.
You know the other wordpress pages more or less follow this same logic:

if ( have_posts() ) : while ( have_posts() ) : the_post();
I decide to get the permalink, time, title, and content after that so the functions are easy:
the_time('l, F jS, Y'); //you can change the format, please search in the codex

You should also keep an error message if something goes wrong with your code.
_e('Sorry, there are no posts.');
As I said before: there are three themes as of now. So I need two more template files. One is for Blog and the other, the custom one is for any other purposes.
You need ‘header-blog’, ‘footer-blog’, ‘header-custom’, and ‘footer-custom’. And in the related template file don’t forget to write like this:

Besides these simple routine I decided to show one category in my custom styling. I’ll write this part in detail.
Finally my website looks like this:

The Home page:

The blog Page:

The Contact page:

The archive page:

And finally I decided to show my ‘PHP’ category posts in the custom styling:

So this is it. For full code please visit my Github repository:


The Great Cyber Robberies Expose Our Sordid Underbelly!

Does the future look too rosy for us, – the new digital India?
It’s not beyond reasonable reservation. While our government is pressing for cashless transaction, a thick mantle of fear hangs loosely around the wrong encryption policy and slack cyber security measures taken by AM-ADMI. It’s not a question-and-answer session anymore. It’s probably been answered already: we will be at a bigger loss if correct steps are not taken right away!
Continue reading “The Great Cyber Robberies Expose Our Sordid Underbelly!”

Ransomware is the new Threat: Pay the Kidnappers a Ransom and Obtain your Essential Files

The real life kidnapping model has just morphed into a new avatar in the virtual world encrypting your essential files, demanding money, holding you as a hostage. Cyber criminals have now adopted the same ‘real-life’ kidnapping technique to snatch your valuable documents holding you for a hostage to make a deal. In such situations you need to buy your freedom for exchange of a ransom.
It sounds bizarre and almost like a science fiction but it starts taking place in our day-to-day life.
Continue reading “Ransomware is the new Threat: Pay the Kidnappers a Ransom and Obtain your Essential Files”

Ethical Hacking for beginners

My first book on Ethical Hacking is now available in Lanpub and Amazon.

here are the Contents:

What is Ethical Hacking?
How You Can Use Many Tools?
The Legal Side
Basic Hacking Terms
Build Your Hacking Environment
What Is VirtualBox?
Install Kali Linux & Other Operating Systems in VB
Linux Terminals and Basic Functionalities
Should I Know Any Programming Language?
Protect Your Anonymity on Internet
1) Tor
2) Proxy Chains
3) VPN
4) All About Mac Address

# Prologue

This book is intended for complete programming beginners or general people who know nothing about any programming language but want to learn ethical hacking. Ethical Hacking, by no means, is associated with any kind of illegal electronic activities. They always stay within laws. This book is intended for those people – young and old – who are creative and curious and who want to develop a creative hobby or take up internet security profession acting as ethical hacker.

Continue reading “Ethical Hacking for beginners”