Tumblr Theme Making Tip - Tag Pages and Search Pages
You can put titles (or anything you want) on tag pages (/tagged/something) and search pages (/search/something) using the “tagpage” and “searchpage” blocks made by tumblr. You can put the number of posts found for that particular tag or search query and of course the tag or search query itself. It’s quite a cool feature not many people use. Here’s how to put them in your theme, for people who are good with HTML, CSS and how tumblr themes work.
These are the blocks which you wrap around whatever you want to put specifically on tag and search pages on your tumblr theme:
{block:TagPage} {/block:TagPage}
{block:SearchPage} {/block:SearchPage}
Using localization strings (text you put in your themes that automatically will change to the language of the installer of the theme) such as {lang:Showing TagResultCount posts tagged Tag} will show how many results were found for that particular tag or search page. There’s also simply {SearchResultCount} for search pages. Additionally you can put text in for when there are no search results using {block:NoSearchResults} {/block:NoSearchResults} so users aren’t just met with a blank screen.
Put your tag page or search page title above the {block:Posts} in your theme and and h2 heading tag might be sensible, for example:
It’s a good feature to have in your theme as it gives the viewer of the blog added, valuable information about what page they are on. And now that tumblr has made it’s search feature MUCH better (searching all text in posts not just the tags), I expect more people might actually use it, meaning that adding the option for a search box and making search pages as awesome as possible is something you want to do.
This kind of attention to detail in a tumblr theme is what will make yours standout. Adding a tag page and search page title will make tumblr bogs easier to understand and navigate. It is cool and interesting to be able to see how many posts there are tagged with a certain thing and how many posts there are containing a certain search query. Tagging tumblr posts is a great way to keep all posts about a certain thing together on a tag page and he search feature is great because it gives viewers of your blog the tool to find a certain thing they are looking for. It’s for sure good practice to construct your theme with the assumption that tag pages and search pages will be used often on the tumblr blog, if not just to cover all bases and ensure it is an all round, functionally and aesthetically great theme. Don’t be afraid to check out my tumblr themes which all have the option for a search box and titles on tag and search pages!
This has been a tutorial on how to add titles to your tumblr theme’s tag and search pages, I hope it has been at least somewhat useful to you as you build your tumblr theme.