It is important to know the exact scope of Blogger page types in order to be able to place different content on selected page types. Following page types exist at Blogger currently:
1. Home page
2. Archive Page
3. Item Page = Post pages
4. Index Page = home page, label page, search page
5. Static Page = Blogger Pages (relatively new in Blogger)
The code would look like this:
a) for include cases (include content by replacing the "content here" text below in case you want to see them appear when the specified page type IS being viewed):
(click in the box to highlight the code for copy)
b) for exclude cases (include content by replacing the "content here" text below in case you want to see them appear when the specified page type IS NOT being viewed - all other pagetypes BUT the specified one):
(click in the box to highlight the code for copy)
Notice the only difference between the two is the double equal sign (==) in case of includes and the exclamation mark and single equal sign in case of excludes. The [PageTypeID] part will be replaced by the above listed page type according to your needs: archive, item, index, static_page.
In case of the home page the code is slightly different:
(click in the box to highlight the code for copy)
If you want to know more about this and see some additional tricks, you may want to check out the blog post called Selective Display of Blogger Widgets on homepage, archive,post page, or particular pages.
No comments:
Post a Comment
Dear legitimate commenters, please post your comments below. I'd be happy to receive your feedback; helps me a lot improving, or getting reassurance that I'm doing something really great here.
IMPORTANT! A note to commenters planning on advertising their business in comments: please be informed that I'm NOT going to post your comments but will ALWAYS mark them as SPAM.