Home  >  Article  >  Backend Development  >  Modify the title, keywords, and description in the discuz plug-in

Modify the title, keywords, and description in the discuz plug-in

WBOY
WBOYOriginal
2016-07-25 09:13:332242browse
I believe everyone has encountered the problem of modifying the title, keywords, and description in the discuz plug-in

Some plug-ins call the header.htm file by default
Copy the code
Sometimes the title will not be displayed when using some plug-ins. The name of your site is displayed by default. Next, I will introduce to you how to modify the title, keywords, and description of discuz

If you want to achieve the effect of customizing SEO settings such as title, keywords, description, etc. with the discuz plug-in, you first need to find the .inc.php file in the plug-in directory:

First find the file xxx.inc.php and insert the title, keywords and description you want to add between the

The plug-in directory is as follows: /source/plugin/plugin English name/plugin name.inc.php

After opening, add at the beginning of the file:
  1. $navtitle = "your title"; //title
  2. $metakeywords = "your metakeywords ";//keywords
  3. $metadescription = "Your site page description";
Copy the code
After the modification is completed, just save and upload it. In this way, the discuz plug-in can customize the title, keywords, description and other SEO settings.

discuz plugin, title


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn