Phpcms V9 for Baidu optimization (SEO) title separator and short title

Source: Internet
Author: User

PHPCMS V9 Title Separator default is-, according to the online data, this delimiter for Google search engine is very friendly, but for Baidu, it prefers __ this conforms to the Chinese usage custom delimiter, therefore decided to change the website title delimiter to "_" to divide.

Open the phpcms/libs/functions/global.func.php file under the Site directory, locate the function SEO, and further locate the following statement in the functions

seo[' title ' = (Isset ($title) &&!empty ($title)? $title. ' – ': "). (Isset ($cat [' Setting '] [' meta_title ']) &&!empty ($cat [' Setting '] [' meta_title '])? $cat [' Setting '] [' Meta_ Title ']. ' – ': (Isset ($cat [' catname ']) &&!empty ($cat [' catname '])? $cat [' CatName ']. ' – ': ");

Replace ' – ' in the statement with ' _ ' to complete the modification of the header delimiter.


Article page template title modify {$title}.

Phpcms V9 for Baidu optimization (SEO) title separator and short title

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.