To implement a custom menu, the function that needs to be used is wp_nav_menu ();In the theme directory of the functions.php Register_nav_menus ();Then the menu: "Menu" appears under appearanceTo create a menu:Click "Create New Menu", select the column you want to display, then "save Menu"Invoke Menu:Add the following statement to output the menu:The HTML for the output is:Divclass= "Menu-nav-container"> ulclass= "Menu"ID= "Menu-nav"> Liclas
to ensure this style is centered is:
. Alignleft
. Alignright:
Div. aligncenter {Display: block;Margin-left: auto;Margin-right: auto;}
. Alignleft {Float: left;}
. Alignright {Float: right;}
In addition to the alignment, if you choose to write a caption for your image
. Wp-caption: Wraps the image and the caption text in a div which also except des the alignment class from abve if you selected one.
. Wp-caption-text: Wraps the specific text in a p tag with this class assigned. this class a
Article Description: 30 new and beautiful WordPress theme templates for designers
If you just want to create a website for yourself, then WordPress is definitely your choice. Many plug-ins, high security, theme templates rich, easy to maintain and management are its advantages, today to you recommend 30 new
Set fixed link-custom structure:/%post_id%.htmlTo set other link formats, refer to the following structure tags:%year%: The year the journal was published, such as 2009%monthnum%: The month of the journal publication, such as 05%day%: The date the journal was published, such as 28%hour%: Log publication Time (hours), such as 15%minute%: Log publication Time (minutes), such as 43%second%: Log publication time (seconds), such as 33%postname%: article name.%post_id%: Log ID, such as 423%category%:
So, as the framework of the WordPress webmaster should be how to prevent others to embed the framework?
In fact, to prevent others frame your site is also very simple. Just a simple code can be implemented, the code is as follows:
The code is as follows
Copy Code
The role of this JS statement: To prevent their own web page by the human frame, Top.location.href is the top of the address, Windows.location.href is
Set fixed link-custom structure:/%post_id%.htmlTo set other link formats, refer to the following structure tags:%year%: The year the journal was published, such as 2009%monthnum%: The month of the journal publication, such as 05%day%: The date the journal was published, such as 28%hour%: Log publication Time (hours), such as 15%minute%: Log publication Time (minutes), such as 43%second%: Log publication time (seconds), such as 33%postname%: article name.%post_id%: Log ID, such as 423%category%:
WordPress Article form:Aside-----------------log: Standard article with no title displayedImage--------------Images: Single image. The first tag in the article will be considered as the image.Video---------------Videos: Single video.Quote-----------------Quote: Quote another word.Link-----------------Links: links to other websites.Gallery---------------Album: Image showroom.Status--------------state: A short update, typically up to 140 characters. Si
In the production of WordPress theme When I encountered this problem, and encountered a CSS style error, in fact very simple, the operation is as follows:
Add in functions.php in the topic:
Register_nav_menus (' Menu ' => __ (' menu ', ') ');
Post the navigation code in the subject navigation bar:
However, CSS style errors have occurred:
The original output of this function is the following format:
#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 template style.css style fileScre
The latter is a bit more time-saving. If the topic is larger, especially some business topics suggest using the latter. However, Itbulu just now installed the company blog, found a problem
There will be similar "unable to install this package." An error message that does not find a valid subject information tag at the beginning of the STYLE.CSS style sheet. What about the problem?In fact, we release the subject of the person in the Style.css file head written by the nonstandard. We use EditPlus
WordPress defaults to the theme developer's recommendation is to provide a page DOWN button at the bottom of the list of articles, so there is no function for paging navigation that is directly used under the list of articles. Here I provide a more complete pager function.
/** *wordpress article List paging navigation *http://www.endskin.com/page-navi//fun
Hello, everyone! I am sheen, today for you to translate a tutorial on using PS to create WordPress theme. Please forgive me for your first translation.
01 Final Effect Chart
Step 1
Create a new file (press CTRL + N) or File > new, and the parameter settings are as follows (Figure 02):
Figure 02
Step 2
Change your foreground color to #232323 and fill the background with the pain
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.