Optimize the Google font of WordPress to accelerate the running of the domestic server, wordpressgoogle. Optimize the Google font of WordPress to accelerate the running of domestic servers. wordpressgoogle cannot load Google fonts without turning over the wall because Google is completely damaged. Many new users often complain about optimizing the Google font of WordPre
successfully, that is to move the file to the root directory.
CD WordPressMV *.. /
The above command first into the WordPress unpacked folder to see if the file is in the inside, and then all of the cut to move the first layer of the site root directory.
In this way, we will download the WP program and place the root directory, if familiar with the command, a few seconds to solve the problem, and then we are very simple to add a database
Bloginfo () settings Use Wp_title () settings Use Get_stylesheet_uri () to get the style sheet file for the current themeAdd a feed link using Automatic feed linksAdd a declaration wp_head () to the front of the Search results (search.php)Use The_search_query () or Get_search_query () (To display or return a valueInstallation:Theme preview: Named Screenshot.png, placed under the root of your theme.Theme installation: Add theme in background appearance, upload the. zip theme and edit it in the b
The header template is the fourth tutorial in the WordPress topic series from scratch. I have explained how to install and start XAMPP, install Wordpress theme, and introduce the most basic language of PHP language. In this article, we will continue with PHP and learn how to call the blog title and link. Try to input all
Code Instead of directly copying the code
attributes can be displayed in the side pane. When you select the font you want, you can preview the overall style, such as words, sentences, and paragraphs. The following is a simple tutorial to help you use Google Web Fonts faster and better: 1. click Google Web Fonts to enter the Google font service, select the font you want, and click "Add to collection" in the lower right corner, we select the "Alike" font as the example font of the entire
don't be alarmed, wait patiently.
2. Installation Lnmp
After installing the system, you can connect the VPS installation environment via SSH. Note here that the SSH port is filled in correctly. (I use putty here)
After connecting to the VPS, you can follow the official LNMP installation tutorial. Http://lnmp.org/install.html.
First create the screen dialog. Because the installation time of the environm
This article mainly introduces the basic WordPress plug-in creation tutorial, including the implementation of using ajax to submit data. For more information, see
Prepare the plug-in
First, add a folder named "My-Mood" under the \ wp-content \ plugins directory and add an index in the folder. the main file of php. this is the main file of the plug-in. some naming formats are required at the beginning of th
Template File(Template files) AndTemplate(Template) Is the second tutorial in the WordPress topic series from scratch. Before you start, make sure you have read the WordPress theme tutorial #1: Introduction. Otherwise, you will not be able to understand the terms used in tutorial
service, select the font you want, and then click the "Add to Collection" button in the bottom right corner, where we select " Alike "font to be used as an example font for the entire tutorial. 2. After clicking "Add to Collection", a message appears at the bottom of the page "1 font family in your collection" with three buttons, namely "Choose", "Review" and "use". Here, we select "Use". That is, use. 3. It also requires a font setting. Select the a
In the previous tutorial, we created the header. keywords and description information are not added to the PHP file. although some people say that Baidu does not pay attention to keywords and description information, it is always better than Baidu. Therefore, we need to add keywords and descriptions.
In the previous tutorial, we created the header. keywords and description information are not added to the P
If your site is http://ningyuqiao.blog.51cto.com/site is built with Wordpres, you only need to add in the Nginx configuration file:location/{if (-f $request _filename/index.html) { rewrite ( . *) $1/index.htmlbreak;}if (-f $request _ filename/index.php) { rewrite (. *) $1/index.php;}if (!-f$ Request_filename) { rewrite (. *) /index.php;} } If your site is http://ningyuqiao.blog.51cto.com/blog/ site is built with Wordpres, then the code needs to be changed to Location/blog {if (-F $request
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 want to put a side bar on a page, we can also
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%:
(the default width is 1024px and the height is 1024px)The_post_thumbnail ('Full ');//Source imageThe_post_thumbnail (Array(100,100 ));//Custom width and height?> For more information, set the default thumbnail size in the WordPress background-> media. 2. Determine whether the article contains thumbnails. Phphas_post_thumbnail ();//The usage is to use if to determineIf(Has_post_thumbnail ()){//Show thumbnails}Else{//No Thumbnail (a default image
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
‘, ‘add_copyright_info‘);function add_copyright_info ($content){ $content .= ‘
Code can also work directly in the functions. php file of the topic, which reduces the number of times the plug-in is used. If you are interested, try it.
Using this simple example, creating a plug-in is not as difficult as you think, but you need to have a good PHP Foundation and browse the plug-in documents on the official website. In future articles, I will introduce the commonly used functions of these plug-
In the previous tutorial (5), we put the header code common to all template files in one file (header. php), in the same way, our bottom information, such as the copyright statement, is basically shared by all pages.
In the previous tutorial (5), we put the header code common to all template files in one file (header. php), in the same way, our bottom information, such as the copyright statement, is basical
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%:
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"> Liclass="..."ID= "Menu-item-1">ahref="...">Xxa>Li>
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
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.