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 <data:blog.pageName/> - <data:blog.title/>
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.
Structure of Custom Blogger Themes The documentation for Blogger Themes is lacking and incorrect in many spots, making it really difficult to get started on your own. You could of course rip code segments from existing themes but that is hardly the best method to go about creating your own theme. This document will cover the basic structure of the Blogger theme. In future posts (linked at the end) I will cover more parts about Blogger Themes. Blogger Themes are created using an XML Document (only one file). This single document specifies all cases of the website (index / archive / item) along with special styles for the “Widgets” you add to each section of your blog under the Layout section of Blogger Administration Panel. With all of this content in a single document, organization is key and understanding what everything does is even more important. Basic Layout Below is a very stripped down frame of the beginning layout of the XML document for a theme ...
How To Make Blogger Blog Template From Scratch Many Bloggers prefers Blogger over WordPress.But still, the truth is most of the blogs are based on WordPress.This is the reason there has been a lot of development in WordPress Themes,Plugins tools etc. But today, we are going to see how to make the theme of the Blogger blog from scratch. If you also want to make your own theme, for personal or commercial use, you may require - Knowledge of HTML or XML Little CSS And JavaScript(if you want to add the further functionality to the theme and its elements) So let's start. Creating A Blank Theme Template We start first by creating a blank template.Later on we will go on adding elements. You can start by making a XML file on your computer (local storage) OR directly start by typing in the Blogger's HTML editor .I will suggest to directly write in Blogger's HTML editor as you can execute the script there and other hand, check for the errors also. Before writing, Backup y...
Comments
Post a Comment