Why does a blank box appear on the wordpress page?

Source: Internet
Author: User
Tags php tutorial

There are about two reasons for the blank box on the wordpress page:

1. UTF-8 is the file storage type.

If the file storage type is different from the version used,

This will cause the above problems.

Solution: After opening all the files in the editor,

File type.

2. admin-bar

Admin-bar is a toolbar that comes with wordpress3.1,

The default value is at the top,

My page problems also appear here.

Solution: 1. Hide admin-bar

There is a admin-bar.php tutorial file in the wp-patterns folder,

You can directly set the margin-top of html * html body to 0.

2. Remove admin-bar directly.

This does not require forced deletion of files,

In this way, the page cannot be opened easily.

Remove the admin bar from the function. Php file of the topic,

The code is as follows:

Add_filter ('show _ admin_bar ',' _ return_false ');

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.