WordPress Theme Authoring in template and bottom template, WordPress head
Get_header () (Get head)Introduce the theme of the header template, the default will be introduced in the current theme directory of the header.php file. If a name is specified, the header-{name}.php
ArticleDirectory
A complete set of WordPress templates should have at least the following files:
A complete set of WordPress basic template files should have at least the following files:
Style.css: CSS (style sheet) File
Index. php: homepage Template
Archive. php: Archive/Category
WordPress is currently the world's most widely used blog system, is an open source of PHP software. Because the user is numerous, so the WordPress community is very active, has the rich plug-in template resources. Use WordPress can quickly build independent blog site. Many well-known science and technology blog is also
How to introduce a template file for WordPress theme creation: wordpress template. The WordPress template get_template_part () is used to reference the template file. it is similar to g
WordPress Basic Template fileA complete set of WordPress templates should have at least the following files:Style.css:CSS (style sheet) fileindex.php: Home TemplatesArchive.php:archive/category templates404.php:not Found Error page templatecomments.php: Message/reply templateFooter.php:Footer templatesHeader.php:Header templatessidebar.php: Side bar Templatepage.
Brief introduction WordPress templates are combined to generate the pages of your website. Some templates, such as headers and footers, are public to all pages, and some are used only in some specific pages/situations. This article is about: This article answers the following questions: What template file is called when WordPress generates a specific page? Who ca
This article describes how to obtain the header template and the bottom template in the WordPress topic writing, including the use of the get_header () and get_footer () functions. For more information, see
Get_header () (obtain the header)Introduce the header template of the topic. by default, the header. php file in
ZH-CN: Page
Languages:english español français Italiano Japanese language 한국어 Myanmar Nederlands Português do brasil·русский· Slovenčina ไทย Chinese (complex) · (Add your language)
You can write a journal (article) or page in WordPress. When you write a general blog post, you write a journal (article). These logs (articles) are listed in reverse chronological order on the home page of the blog. And the page is like "about bloggers", "contact bloggers
A simple way to get the page ID of the template used in WordPress, Wordpressid
What is a template? By default WordPress is using the theme directory page.php to display the page as a template, but sometimes we need a different template
#21讲项目实战CMS-wordpress Theme Website template making 1, how to create a new theme templateLocate the folder Wamp->www->wp-content->themes, and then create a new folder here (name yourself) and put the static web site we developed into this.2, a complete site template to be specific to the following conditionsA), index.php homepage
Understanding some of the above basic tags and PHP code can greatly help you modify WordPress. we suggest you back up this article and use it later for reference. Of course, if you are an HTML veteran, a DVI + CSS master, or a PHP holy hand, you do not have to do this!
For many new WordPress users, if they do not understand any code, they will blindly change the WordPr
Wordpressid is a simple method for obtaining the page ID of the template used in WordPress. WordPress provides a simple method to obtain the page ID of the template used. what is wordpressid? By default, WordPress uses page. php in the topic directory as the
Looking at template-laoder.php, this file is only 45 lines in total. Its role is to load the correct template based on the URL of the access.The sixth line of the file is also the first statement, as follows:if defined (' Wp_use_themes ') wp_use_themes) do_action (' Template_redirect ');First judge whether to use themes, the Wp_use_themes constant is set to true in the first sentence of index.php. As a
For more information, see WordPress. For more information, see The PHP function for WordPress to call comment templates and to output comments cyclically. For more information, see the wordpresscomments_templatecomments_template function, which is a function for calling comment templates, for more information about how to use WordPress, call the comment
What is a template? By default WordPress is using the theme directory page.php to display the page as a template, but sometimes we need different templates to display pages, such as login, registration and submission page, and so on, these pages and ordinary pages are different, At this time WordPress provides a page
Usually in the first time to make a news blog template, it is difficult to grasp the direction. This tutorial will provide you with a reference on how to make WordPress news blog topics in Adobe Photoshop. This topic includes a header area, a picture rotation area (contains featured articles, recent messages, sorted by category, sidebar, widget). If you are a beginner, follow this tutorial step by step. If
Yesterday the use of the Firefox firebug plug-in share, we see the trust will use. Today, we'll create a template for the theme.When we just started to install the WordPress system to enable a theme, the default home page is displayed in the list of articles, that is, the form of the blog, then it first call is the theme inside index.php this file. While we are looking at the more functional topics, they ba
What is a template? By default, WordPress uses the page under the topic directory. php is used to display pages as templates, but sometimes we need different templates to display pages, such as logon, registration, and contribution pages. These pages are different from common pages, at this time, WordPress provides a page tem
, minute, or second.
Any archive pageIs_archive ()Whether to archive the page.
A search result page
Is_search ()Whether to search pages.
A 404 Not found page not found page
Is_404 ()Whether the page is 404.
A paged pageIs_paged ()Determine whether there is a page. You need to
An attachmentIs_attachment ()Determine whether the file is an attachment. the attachment is an image or other File Uploaded through the editor upload tool. The attachment can be displayed on the corresponding page or
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.