tailieunhanh - Hướng dẫn tạo themes cho wordpress part 2
Nếu bạn cần để xem trước chủ đề của bạn trước khi kích hoạt nó, hãy nhấp vào liên kết Xem trước với chủ đề mà bạn đang quan tâm Sau khi xác nhận rằng xem là chính xác, nhấp vào liên kết kích hoạt ở góc trên bên phải của hộp xem trước, như thể hiện trong hình sau: | Chapter 1 If you need to preview your theme before activating it click on the Preview link under the theme that you re interested in. After confirming that the view is correct click on the Activate link in the upper-right corner of the preview box as shown in the next screenshot If you don t wish to preview your new theme you can click on the Activate link directly. After activation the page will refresh and you ll be greeted with a message regarding the switch WordPress Theme Basics----------------------------------------------------------- How it works. When you activate a new theme WordPress stores two values in the database indicating which theme is active and what template files should be used. Whenever a page is viewed on the website WordPress looks up the active theme and uses the correct template files to display the appropriate output. The two values are located in the WordPress options table for your install and have keys of stylesheet and template. In most circumstances these two values will be the same. However if you are using a child theme the template option will be the name of the folder in which the parent theme is located. Displaying the blog name A variety of information about a blog can be entered in the WordPress administration panel. Displaying that information publicly is the responsibility of the active theme. One piece of information that you may want to display is the name of the blog. How to do it. First you must locate the position at which the blog name should be displayed in your theme. Open the appropriate theme file is a good place to start and place your cursor at the desired location. For the purposes of this recipe you ll be inserting the blog s name as the value of the title tag. Locate the title tag and remove whatever value is contained within it. Now insert the bloginfo function and make the markup look like the following title php bloginfo name title How it works. When the blog name is set in the administrative .
đang nạp các trang xem trước