Skip to main content

Block Specific Dynamic Views, Using Custom Redirects

One odd question, that has intrigued me for a while, is about dynamic templates, and reader choice.

We see the occasional question, in Blogger Help Forum: Learn More About Blogger.
How do I prevent my readers from viewing my blog, using an unacceptable dynamic view?
This blog owner is overlooking one of the major advantages to dynamic templates.

Using a dynamic template, you allow your readers a choice - how they get to view your blog.

Use custom redirects, to redirect from non wanted dynamic views.

However, if you truly want to publish your blog using a dynamic template, and prevent access to specific views, this can be easily done. Just add two or more custom redirects, from any dynamic template URL, to a more desirable URL.

First, you have to set a default view. Effective redirection requires a default view set. We'll use "magazine" as our default.
From: /
To: /view/magazine

Now, let's block "Classic" view.

From: /view/classic
To: /view/magazine

And add more views to block, as required.

Test the redirections, in my test blog.

See it in operation, using my test blog. See if "Classic" or "Flipcard" work, for you.
From: /
To: /view/magazine

From: /view/classic
To: /view/magazine

From: /view/flipcard
To: /view/magazine

You can also remove the View menu, from the blog.

Besides redirecting specific views, you can remove the View Menu from Dynamic Views. Use "Add CSS" in Template Designer, and add a rule.

#views {
display: none;}

Be aware of one need with the "Add CSS" wizard.

As always, if there is a rule in the "Add CSS" window, add a blank line preceding / following this new rule!

Otherwise this tweak will require a bit more work.

Many Blogger features are dependent upon other features. This tweak will not work, with the sidebar tweaked to not hide itself.

With choices come more satisfied readers - people who spend more time reading what you have to say, who bookmark the blog so they can come back later, and who recommend the blog to their friends. And all of that leads to more traffic - which is not a bad thing.

But, if you truly need to block some views, this is easily done.

Comments

Popular posts from this blog

Stats Components Are Significant, In Their Own Context

One popular Stats related accessory, which displays pageview information to the public, is the "Popular Posts" gadget.

Popular Posts identifies from 1 to 10 of the most popular posts in the blog, by comparing Stats pageview counts. Optional parts of the display of each post are a snippet of text, and an ever popular thumbnail photo.

Like many Stats features, blog owners have found imaginative uses for "Popular Posts" - and overlook the limitations of the gadget. Both the dynamic nature of Stats, and the timing of the various pageview count recalculations, create confusion, when Popular Posts is examined.

What's The URL Of My Blog?

We see the plea for help, periodicallyI need the URL of my blog, so I can give it to my friends. Help!Who's buried in Grant's Tomb, after all?No Chuck, be polite.OK, OK. The title of this blog is "The Real Blogger Status", and the title of this post is "What's The URL Of My Blog?".