dphw5101 2016-09-01 08:06
浏览 54
已采纳

在没有php的情况下为wordpress构建html,css和javascript页面? [关闭]

So as the titles already states, is it possible to build a fully functioning wordpress page layout/theme using only frontend languages? And how will I incorporate it into wordpress without php?

Thanks!!!

  • 写回答

1条回答 默认 最新

  • dongneng5383 2016-09-01 09:38
    关注

    Well no but you could certainly get away with using very little. Just have

    <?php get_header(); ?>
    

    at the top of every page and

    <?php get_footer(); ?>
    

    at the bottom

    A page named header.php with

    <?php wp_head(); ?> 
    

    at the top and a page named footer.php with

    <?php wp-footer();?>
    

    at the bottom should get you going. From there just use html and javascript like normal.

    HOWEVER this is leaving out 99% of the reasons to make a WordPress theme in the first place. It's a good place to start learning but if you want to make themes your gonna want to learn php. This tutorial worked well for me.

    https://www.youtube.com/watch?v=k7olvEeBM2I&index=3&list=PLpcSpRrAaOaqMA4RdhSnnNcaqOVpX7qi5

    Good luck!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用三极管设计一个单管共射放大电路
  • ¥20 fluent无法启动
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'
  • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)
  • ¥15 怎么把多于硬盘空间放到根目录下
  • ¥15 Matlab问题解答有两个问题
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架