drau89457 2010-10-14 19:32
浏览 34

如何一次使用两个Wordpress模板......或类似的东西?

I'm building a wordpress template with a lot of javascript, so I am also setting up a fallback version what requires different php in the index file of the template, and preferably, different header files.

The best way to do a fallback seems to be setting a javascript redirect on the "non-javascript site" to go to the "javascript version" of the site.

I am a bit confused on how the index.php file from the template folder trickles all the way down to the root directly. Yes, a understand php includes, but don't know how to jam a different file down the wordpress pipeline.

I was thinking I could do a redirect to mywebsite.com/index2.php but then I realized I didn't know how to get that to work.

Any ideas on how to do this?

  • 写回答

1条回答 默认 最新

  • doudui1850 2010-10-14 19:39
    关注

    It isn't the index.php that handles what template you use. Is a field in the database.

    You would need to create a new theme that has both and switches them based on a session variable.

    I am guessing this is nontrivial.

    评论

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办