Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

He Guys,

i've been looking for a way to show a different Page-Template based on HTTP Referer or maybe the User Agent or what ever.

I'm planning an Image-Gallery which should be shown in a Fancybox. My Idea is to use a template which contains only the loop and all the stuff i need to build the gallery correctly (without any Header and Footer files) and load it in my Fancybox.

But what about the Search Engines und Users with disabled JavaScript. They don't see anything or only a page without the Pagecontext like Navi etc. How can i prevent this issue?

Any ideas

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Fancybox has built in fallback, it displays images without JavaScript.

I don't see why you would want to remove the header ( or footer) since it usually contains some good info like your doctype, css, meta, title, etc.

If you want it to look different ( aka strip it clean) you should still include it and use conditionals for your "Portfolio" page.

share|improve this answer
    
Thank you very much for your answer. But that is not my question... ;) I know that doctype and meta informations are quite usefull. This is why i ask how the serve two different templates. I want to serve search-engines and users with disabled js an full-page and everybody else as an goodie the Fancybox Gallerie. Here is an anonomized screenshot: img189.imageshack.us/img189/3740/examplebw.png –  gearsdigital Jul 22 '11 at 14:59
    
Don't bother. Javascript support with users is about 98% and like I said it already has fallback, and who cares about search engines with regards to this is makes zero difference. –  Wyck Jul 22 '11 at 17:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.