Discover best classified wordpress theme, include the articles, news, trends, analysis and practical advice about best classified wordpress theme on alibabacloud.com
Make footer.php, create a new file in the theme directory footer.php, extract the footer code from the index.php:PClass="Grid_12 footer Clearfix" >spanClass="Float" >Strong>design by/Strong> qwibbledesignsnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Strong>code by/Strong>aHref= ">ludou/a >/span >a class= "float Right" href= "#" >top/ a >/p > /div ; /body ; /html ; Delete the code like index.php, archive.php, contact.php, full_width.php, page.php,
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
After installing the new theme theme, through the control Panel's customize function, you can enter the custom interface, you can see a lot of options, how to add such options?First, find the customize_register corresponding function in the inc/customizer.php of the topic and add the following: $ wp_customize - add_setting (' Blog_disp ', Array(' Sanitize_callback ' = ' Astrid_sanitize_checkbox ', )
Yesterday Lei son to the homepage template creation Method said, presumably everyone looked after know how to create a template, we just need to add template name in the template file created, you can use when the template. We are changing the theme is, if the individual page would like to put some style or JS effect up, but do not want to have other pages, we can use the method of creating a template to solve it. The sidebar is the same, if you just
From: http://jingyan.baidu.com/article/4f34706efc1237e387b56da4.html But personally think this grant 777 of the authority is very bad, so used to comment out, this is a temporary method, There should be a better way.
Use the WordPress program architecture site If you need to upgrade in the background of the site, install the theme or plug-ins, always prompts us to provide FTP information interface. There i
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:
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
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
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.