Conditional Tags are a boolean data type (a data type that has two possible values). It allows you to tell the code to act differently in specific situations.[1][2]
After pasting the code will look something like this.
How your code will look like
Save Theme
Click on save to see effect of the tags you just added.
Then proceed to click on "Save Theme"
Wait, don't go yet. At least you should know how the codes work and what they do. Let me simplify and explain each tag one by one below.
This Tag defines only the homepage of your blog, it tells your blog home page to show your website title like this "Search Engine Rank - Optimization Ready". It does not define other pages.
This tag defines how post pages should look like in the title bar.
This code is for archive pages like January, February, 2019, 2020 like that. This one tells the archive pages to look like this "2019 in Blogtitle"
This tag defines the Pages on your blog.
Defines all label pages title that if a page is a "Label" then this -
Defines a error page
Defines all next pages on the homepage
Other common conditional tags
This code defines a specic post from this location /2020/01/post-title.html. it tells it to only use the specific title for the page.
It is used to command the tag to define a specific label page
This tag defines the search pages telling all the search pages on your website to look something like this "Search Query - Blogtitle"
This tag defines a specic search query which is (Seo) that when you searched for Seo, it should appear like " Seo - Blog title".
Defines all Statics page (pages that looks like this /p/title.html).
Defines a static page with the "p/page.html" specific destination.
Are conditional tags only used for titles?
No, conditional tags are used to show or hide certain objects in specic place. It can also be use to hide or show widgets on blogger. Let me show you some examples.
This code will only let your widget display on static pages.
This will load widget in label or search pages.
You can do that on and on and on...
In this case adding the code will be a little different from adding the conditional tittle tags
How to add Conditional tags for widgets
After clicking on Edit HTML then
Click on "Jump to Widget"
Click on Jump to Widget
Select Your Widget
Select your widget and paste your conditional tags.
Select your widget then save theme
Save Theme
After pasting your code, click on save, you're now done. Congratulations!.
Conclusion
This tags will help you structure your mobile or desktop site, it will also help your site prepare for optimization in terms of speeding up your blog and setting different page titles for different pages. In other words it helps you set better experience for users.