Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/237.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php wordpress,如何更改页脚中的信息?_Php_Html_Css_Wordpress - Fatal编程技术网

Php wordpress,如何更改页脚中的信息?

Php wordpress,如何更改页脚中的信息?,php,html,css,wordpress,Php,Html,Css,Wordpress,我正在用wordpress建立一个网站,主题是2133。我想去掉“这是一个博客…(搜索栏)…最近的帖子…最近的评论等等”这些词,但是唯一一个有页脚编码的页面是footer.php。下面是footer.php的编码。这里有什么我想错过的吗?因为我看不到任何东西,我可以改变没有整个页脚被删除一般。我真的被卡住了,有人能给我澄清一下吗 <?php /** * The template for displaying the footer. * * Contains footer conte

我正在用wordpress建立一个网站,主题是2133。我想去掉“这是一个博客…(搜索栏)…最近的帖子…最近的评论等等”这些词,但是唯一一个有页脚编码的页面是footer.php。下面是footer.php的编码。这里有什么我想错过的吗?因为我看不到任何东西,我可以改变没有整个页脚被删除一般。我真的被卡住了,有人能给我澄清一下吗

 <?php
/**
 * The template for displaying the footer.
 *
 * Contains footer content and the closing of the
 * #main and #page div elements.
 *
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since Twenty Thirteen 1.0
 */
?>

                </div><!-- #main -->
                <footer id="colophon" class="site-footer" role="contentinfo">
                        <?php get_sidebar( 'main' ); ?>

                        <div class="site-info">
                                <?php do_action( 'twentythirteen_credits' ); ?>
                                <a href="<?php echo esc_url( __( 'http://wordpress.org/',     'twentythirteen' ) );       ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>
                        </div><!-- .site-info -->
                </footer><!-- #colophon -->
        </div><!-- #page -->

        <?php wp_footer(); ?>
</body>
</html>

页脚中有两个部分/组件

  • 显示一个模块

  • 归功于WordPress

  • 如果要删除侧栏,请删除代码

     <?php get_sidebar( 'main' ); ?>
    
    
    
    如果要删除信用,请删除以下代码:

    <?php do_action( 'twentythirteen_credits' ); ?>
                                    <a href="<?php echo esc_url( __( 'http://wordpress.org/',     'twentythirteen' ) );       ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>
    
    
    

    否则,删除这两个小部件,您将得到一个清晰的页脚。

    我认为您试图删除的是默认的小部件。如果是这种情况,请转到外观>小部件,并从“主小部件区域”下拉列表中拖放要删除的所有内容。

    “这是一个博客…(搜索栏)…最近的帖子…最近的评论这是来自widget。如果你不想这样做,你需要删除这些widget。

    如果我删除侧栏,它会清除整个页脚,如果你删除它,第二部分不会做任何事情。谢谢你的帮助!第二部分删除WordPress等的信用。是的,如果你能提到网站url,它将太好了