Blank solution on top of WordPress

Source: Internet
Author: User

Introduction: This is a detailed page of the blank solution on the top of WordPress. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 329777 'rolling = 'no'>

Recently, I have been playing the WordPress topic,

I found a blank box on the top of the page,

This leads to poor advantages of page effects,

So try to remove it.

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

One, 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 file in the WP-topics 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,

CodeAs follows:

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

More articles on "Blank solutions on top of WordPress"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/329777.html pageno: 12.

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.