php - 如何更改我网站上的页眉和页脚?

标签 php html css wordpress

网站名称是 newinternetdaily.com 所以昨天我为网站安装了 newsmag 破解主题。它具有更改标题的选项,但默认文本未更改。 我不知道 php 所以帮助我编辑页眉文本和页脚。 header.php代码

<!doctype html >
<!--[if IE 8]>    <html class="ie8" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
<head>
    <title><?php wp_title('|', true, 'right'); ?></title>
    <meta charset="<?php bloginfo( 'charset' );?>" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    wp_head(); /** we hook up in wp_booster @see td_wp_booster_functions::hook_wp_head */
    ?>
</head>


<body <?php body_class() ?> itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WebPage">

<?php //this is closing in the footer.php file ?>
<div id="td-outer-wrap">

    <?php /* scroll to top */?>
    <div class="td-scroll-up"><i class="td-icon-menu-up"></i></div>

    <div class="td-transition-content-and-menu td-mobile-nav-wrap">
        <?php locate_template('parts/menu-mobile.php', true);?>
    </div>

    <?php //this is closing in the footer.php file ?>
    <div class="td-transition-content-and-menu td-content-wrap">



<?php
td_api_header_style::_helper_show_header();


do_action('td_wp_booster_after_header'); //used by unique articles



 And the footer.php file is 

    <!-- Footer -->
    <?php
        if (td_util::get_option('tds_footer') != 'no') {
            td_api_footer_template::_helper_show_footer();
        }
    ?>
<!-- Sub Footer -->
<?php if (td_util::get_option('tds_sub_footer') != 'no') { ?>
    <div class="td-sub-footer-container td-container td-container-border <?php if (td_util::get_option('tds_footer') == 'no' && td_util::get_option('tds_footer_bottom_color') == '' ) { echo "td-add-border";} ?>">
        <div class="td-pb-row">
            <div class="td-pb-span4 td-sub-footer-copy">
                <div class="td-pb-padding-side">
                    <?php
                    $tds_footer_copyright = td_util::get_option('tds_footer_copyright');
                    $tds_footer_copy_symbol = td_util::get_option('tds_footer_copy_symbol');

                    //show copyright symbol
                    if ($tds_footer_copy_symbol == '') {
                        echo '&copy; ';
                    }

                    echo $tds_footer_copyright;
                    ?>
                </div>
            </div>

            <div class="td-pb-span8 td-sub-footer-menu">
                <div class="td-pb-padding-side">
                    <?php
                    wp_nav_menu(array(
                        'theme_location' => 'footer-menu',
                        'menu_class'=> '',
                        'fallback_cb' => 'td_wp_footer_menu'
                    ));

                    //if no menu
                    function td_wp_footer_menu() {
                        //do nothing?
                    }
                    ?>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
    </div><!--close content div-->
</div><!--close td-outer-wrap-->



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

最佳答案

转到 wordpress 仪表板,单击 Newsmag>主题面板,在主题面板下单击 header,然后转到 Logo & Favicon。 在那里你会找到 Text Logo 和 Text Logo Tagline,你可以在这里更改。

关于php - 如何更改我网站上的页眉和页脚?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34562959/

相关文章:

PHP+MYSQL_locks .....请帮忙.....我被困在这个..?

java - 使用 json 数据的依赖 android spinner

php - 根据php mysql中的值从多个值返回多个值

javascript - 即使在源代码中也隐藏了代码注释(html/JS)

html - 单击时不一致的表单中的 CSS 文本?

javascript - 从父元素隐藏某些内容但在 CSS 中显示子元素

php - PHP 中的广告管理系统?

html - 表单标签弄乱了我的网站

image - ReactJS 中的图像着色

html - Firefox 错误地将 margin-bottom 添加到元素的顶部