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.
How to Optimize and rank in Google Image Search Ranking image can bring you as more traffic as the content rank itself brings you. So how do you rank your images in google, bing, yandex, baidu and other search engines?. In this topic you find it all. How to Optimize and rank in Google Image Search Ranking in google images will be the sweetest thing that will happen to your blog, it gives you the engagement and visitors you need. Before you upload any image file to your blog there is one important thing you should consider doing first, and that is to name the file you will be uploading. The Image name Image name How to perfectly name your image Let say you already find the image you need to upload on a page title of "how to optimize and rank for image search". Before uploading, First make sure you do not use default iamege names like Screenshot-012019.jpg, or Image.jpg (or something like " how to optimize and rank for image search ") in the file...
One of the most asked questions for both new and old blogger is Wordpress or Blogger which is better? Which should i go for?. WordPress and Blogger are both good, but which is better? Let me analyse it below for you. Blogger vs WordPress Before we start you should know that there are two types of WordPress website creator, WordPress.org and WordPress.com . WordPress.Org is paid while the other can be used for free (to be honest blogger is far better than the free WordPress, unless you moved to paid then it will be a tie). On this topic I will be discussing about the paid. Before we get started, you should know that I have used both platforms, which means I know what am saying. So lets begin. Quick checkup, On WordPress You do not need to worry yourself doing things from scratch, all you need to do is know what you want and get the plugin that will automatically do the exact thing for you. But On Blogger , it is "a man for himself", you will have to do all things you...
Comments
Post a Comment
Readers can only Comment with their Google account if you’d like to be able to manage your comments in the future. All comments are moderated before approval. Comment with any means of advertisement, links, or Comments that goes Off-Topic might not be approve. Read our Privacy and Policy.