我可以在 wordpress 的子主题上创建新的 page.php 吗? [英] Can I create new page.php on child theme in wordpress?

查看:25
本文介绍了我可以在 wordpress 的子主题上创建新的 page.php 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在子主题上创建新页面(具有特定样式).我在子主题上创建了一个 page.php,但是,它不起作用.取而代之的是父主题的 pape.php.当我删除父主题的 pape.php 时,它会重定向 index.php.

I would like to create new page (with specific style) on child theme. I created a page.php on child theme, however, it doesn't work. Instead of, parent theme's pape.php does. When I remove the parent theme's pape.php, it redirects index.php.

我可以在 wordpress 的子主题上创建新的 page.php 吗?

Can I create new page.php on child theme in wordpress?

推荐答案

听起来很奇怪.据我了解,您只需创建一个新的 -filename-.php,就可以从子主题中重载父主题中的所有文件.这是一些不错的阅读Wordpress 子主题

Sounds strange. As i understood you can overload all the files in your parent-theme from the child-theme by just creating a new -filename-.php. Here is som good reading Wordpress Child Theme

这篇关于我可以在 wordpress 的子主题上创建新的 page.php 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆