我的站点

一个系统软件工程师的随手涂鸦

Tag: wordpress

WordPress博客添加新页面方法

WordPress博客添加新的页面方法:
(1)登录博客,点击“新建”->“页面”,开始编辑;
(2)编辑好后,点击“外观”->“菜单”,将新的页面加入到菜单中就可以了。

解决“Warning: Cannot modify header information – headers already sent by …”的问题

中午变化了一下博客主题,结果就登不上了。提示错误如下:

Warning: Cannot modify header information - headers already sent by (output started at /home/to/public_html/en/wp-content/themes/nordby/functions.php:78) in /home/to/public_html/en/wp-login.php on line 418

Warning: Cannot modify header information - headers already sent by (output started at /home/to/public_html/en/wp-content/themes/nordby/functions.php:78) in /home/to/public_html/en/wp-login.php on line 431

问题出在/home/to/public_html/en/wp-content/themes/nordby/functions.php这个文件上。这是错误的文件截图,可以看到结尾有空白行:

err

修改成这样就可以了:

right

参考资料:
Cannot modify header information – headers already sent by …

Powered by WordPress & Theme by Anders Norén