TAILIEUCHUNG - Hướng dẫn tạo themes cho wordpress part 13

Điều này đánh dấu phần đơn giản của định nghĩa một tài liệu HTML chuẩn với đầu thích hợp và các yếu tố cơ thể. Bên trong của cơ thể là một yếu tố duy nhất nhóm mà đọc Xin chào thế giới!. Lưu tập tin của bạn vào thời điểm này để đảm bảo rằng WordPress sẽ có thể phát hiện ra nó cho các bước tiếp theo. | Chapter 7 For the sake of remaining simple this page template will only display a simple string. Directly after the piece of markup that you added earlier insert the following code DOCTYPE HTML PUBLIC - W3C DTD HTML EN http TR html4 html head title Hello World title head body h1 style text-align center Hello World h1 body html This simple piece of markup defines a standard HTML document with appropriate head and body elements. Inside of the body is a single heading element that reads Hello World . Save your file at this point to make sure that WordPress will be able to detect it for the next few steps. Pat yourself on the back You ve just created your first custom page template. Although it may be simple the new page template will serve well for demonstration purposes. Now you just need to see it in action by creating a new page. Open the WordPress administrative area and navigate to the Add New Page interface. Once there add a title of some sort it doesn t matter what but you need to have a title . Next locate the Attributes meta box. It looks like the following Custom Page Templates As you can see this meta box allows you to change the page template for the page that you are editing. Select the page template Hello World from the drop-down menu underneath the Template heading. If you can t find the Attributes meta box then it may be hidden from the screen. At the top right click on the Screen Options link and make sure that the checkbox next to Attributes is selected. After selecting the appropriate page template from the drop-down menu publish your page by clicking on the Publish button in the Publish meta box. After a few brief moments your page should refresh and you ll be greeted with a View Page link at the top of the screen. Click on this link and your browser will navigate to and display your new page showing off your custom page template. Your page should look like the example shown in the following screenshot How it works. You .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.