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

WBOY
Release: 2016-07-25 09:13:33
Original
2242 people have browsed it
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


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template