how to add blogger conditional tags and make internal links | solution of problem and crack software full version xyztricks solution of problem and crack software full version xyztricks: how to add blogger conditional tags and make internal links
Contact Us:

If You Have Any Problem, Wanna Help, Wanna Write Guest Post, Find Any Error Or Want To Give Us Feedback, Just Feel Free To Contact Us. We Will Reply You Soon.

Name: *


Email: *

Message: *


Skillblogger

LiveZilla Live Help

Wednesday 28 January 2015

how to add blogger conditional tags and make internal links

Blogger conditional tags
If you are the geeky type and like playing around with your Blogger template, then you might know what conditional statements are. Blogger has recently updated its conditional statements with template tags which allow you greater flexibility in designing/tweaking your Blogger template. These tags can be used to control the display of HTML elements under certain specific conditions - hence 'conditional' tags.

Conditional statements vs tags


Blogger Conditional Statements were used to control the display of HTML elements on certain pages or to set different styles for different Pages. This could be useful for instance in cases where you want to control where you want to display widgets in Blogger - some are meant for the homepage while others on post pages, and so on.

Here's an example of such conditional statements;

<b:if cond='data:blog.url == data:blog.homepageUrl'>
      WIDGET CODE GOES HERE
</b:if>

These statements, while useful weren't very easy to implement and manage on a large blog. Tracking different conditional statements can get tedious. Luckily, Blogger now has a better solution.

Instead of conditional statements, now we have conditional tags, and content enclosed within these tags is displayed based on the nature of the tag. Here are the different types of tags available;
  • <MainPage> </MainPage>
  • <ArchivePage> </ArchivePage>
  • <ItemPage> </ItemPage>
  • <MainOrArchivePage> </MainOrArchivePage>
If you have something in your template that you only want to appear on the main page of your blog, simply put and tags around it, and similarly for the other page types.

Conditional tags: example

Suppose you want to modify all your post pages to include a link back to the main page of your blog. That way, if someone arrives at an individual post from a search or an outside link, they'll be able to easily click over to your main page to read your current posts. To do this, just add this code to your template, wherever you'd like it to appear:

<ItemPage><a href="http://example.blogspot.com">Read my latest posts!</a></ItemPage> 

Because you've wrapped this particular bit of HTML in the <ItemPage> </ItemPage> conditional tags, the only condition under which this link will show up is when someone is visiting one of your individual post pages. The link will not show up on your main page.

The advantage of this new approach is, you can easily keep track of all the items you want to display on a particular page. For example, all the homepage widgets can be kept within the <MainPage> tag.

The power may be limited for now to only four types of pages, but Blogger is working on this new approach, and soon many more tags will follow, giving you more power over your Blogger template. Meanwhile, if you have any questions, please feel free to ask us in the comments section below. Cheers :)






var popunder = true;
Like the Post? Share with your Friends:-

Team SB
Posted By: Team SB
Comment Using

Comment Policy : We’re enthusiastic to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.

1 comment:

  1. How To Add Blogger Conditional Tags And Make Internal Links >>>>> Download Now

    >>>>> Download Full

    How To Add Blogger Conditional Tags And Make Internal Links >>>>> Download LINK

    >>>>> Download Now

    How To Add Blogger Conditional Tags And Make Internal Links >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete

Contact Us

Name

Email *

Message *

 

Latest post

About Us

Recent Comment

Copyright © . SkillBlogger. All Rights Reserved.
Designed by :-Way2themes