2017-08-01 167 views
0

這是我主題的代碼頁腳。我想刪除「本站由WordPress的」,但我不能在這裏看到的解決辦法,請大家幫忙編輯隱藏頁腳Wordpress

<?php do_action('maxwell_before_footer'); ?> 

<div id="footer" class="footer-wrap"> 

    <footer id="colophon" class="site-footer container clearfix" role="contentinfo"> 

     <?php do_action('maxwell_footer_menu'); ?> 

     <div id="footer-text" class="site-info"> 
      <?php do_action('maxwell_footer_text'); ?> 
     </div><!-- .site-info --> 

    </footer><!-- #colophon --> 

</div> 

回答

0

您找到註釋掉每個do_action方法WordPress的頁腳依次調用,直到文本消失。之後,您可以grep主題來源找到源方法。

1

就是這裏:<?php do_action('maxwell_footer_text'); ?>

替換爲任何你想要在頁腳。

0

//您可以根據您的選擇替代股利或do_action

<div id=」footer-text」 class=」site-info」> 
<?php do_action(‘maxwell_footer_text’); ?> 
</div> 

//或通過CSS隱藏

.site-info { 
    display: none; 
}