Home > Backend Development > PHP Tutorial > 给wordpress增加一个footer,并重新命名,方法名也重新定义了,但是调用不到

给wordpress增加一个footer,并重新命名,方法名也重新定义了,但是调用不到

WBOY
Release: 2016-06-06 20:34:20
Original
1496 people have browsed it

主题默认带的footer是含widget的,很好看,但是有些特定页面没有这个会更好,然后我就复制了一个footer,并重命名了然后把方法名也修改为
wp_footer_no_widget();
但是在page中get footer_no_widget(); 却没有办法调用到

回复内容:

主题默认带的footer是含widget的,很好看,但是有些特定页面没有这个会更好,然后我就复制了一个footer,并重命名了然后把方法名也修改为
wp_footer_no_widget();
但是在page中get footer_no_widget(); 却没有办法调用到

直接Include进来吧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template