How does WORDPRESS add keywords and descriptions to a website?

Source: Internet
Author: User
Tags file upload browser cache
After installing the wordpress program, we found that only the website title and subtitle can be entered, but the keyword addition and description are not added, which may have nothing to do with the average person, but this is not a small matter for seo. It is indispensable for keyword ranking in website rankings. How can we add keywords and descriptions in wordpress? In fact, there are many methods, and the simplest method is to use the plug-in to achieve the effect, but too many plug-ins are not a good thing. Here we will introduce a simple method, as long as the header file (header. php) add code to implement wordpress keywords and descriptions.

Method 1: directly edit the template file

Go to the background, as shown in the figure, and find the appearance-edit
Find the header. Php file on the right of the edited topic, as shown in the figure below.
In the header. in the php file, find the </title> code, which indicates the title ends. After adding the keyword and description code to the title, as shown in the figure, find the </title> code, press enter to empty a line so that we can add code next.
After a line is blank in step 3, modify the following code first.
<Meta name = "keywords" content = "Enter the keywords of your website here"/>
<Meta name = "description" content = "Enter the description of your website here"/>
Generally, the keywords and descriptions of our website are set by ourselves. You can modify the above keywords and descriptions based on your website needs, and then put the code into the line left blank in step 3, then click the update submission below. The wordpress keywords and descriptions have been added since then.
Generally, wordpress does not have keywords or descriptions. After performing this operation, remember to press F5 to refresh it. Sometimes, you cannot see the keywords and descriptions added in the browser cache.

If you still don't know this, I will introduce a plug-in here. You can click download, and then directly click plug-in the background-install plug-in-Select File upload and install-enable plug-in.

If you don't know the code, you can directly process it in the background.

进入网站后台,点击【外观】,选择【当前主题设置】,马上你眼前就是网站描述关键字设置的界面了,当然不同主题提供的功能不同,我这个主题提供的功能就比较丰富。好了不扯了,赶紧设置吧。


In fact, careful friends can see traces of topic calling in the header information of the header. Php file, just in the <meta> tag in the

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.