How do I make SEO settings for the title of Phpcms V9?
Before my friend asked me that CMS good, I introduced the Phpcms v9, really simple and powerful, station station are very easy!
Recently, a friend asked a question, said the title of the homepage can be controlled, but the column page, the title of the content page is very long, the user experience is not good, and then studied a bit, in fact, really simple, understand a bit of logical thinking we can understand.
Case: After setting up, each page title of the start site is displayed as follows
Home title: Webmaster 168-Funny rigorous comedy-cnzz168.com-This is a magical website!
Column title: Natural Wonders-animal world-nature pictures-underwater world-nature-Fun nature-Webmaster 168-Funny rigorous comedy-cnzz168.com-This is a magical website!
Article title: a Husky's angry monologue, husky endure enough! Nature-Webmaster 168-funny and rigorous comedy-cnzz168.om-This is a magical website!
================================
Although in the background "Site Settings", "SEO Configuration" can be set home page title display as "Webmaster 168-Funny rigorous comedy-cnzz168.com.org-This is a magical site!" ” 。
But in this case, the column headings will also follow the changes, that is, the show as "funny nature-Webmaster 168-Fun Rigorous comedy-cnzz168.com-This is a magical website!" "
Successively, the title of the article will also be shown as "a husky's angry monologue, husky endure enough!" Nature-Webmaster 168-funny and rigorous comedy-cnzz168.com-This is a magical website! "
If this is the case, the title is too long. And then my friend is going to change to the following format.
Home title: Webmaster 168-Funny rigorous comedy-qqzw.org-This is a magical website!
Modify the template file header.html <title>......</title>Change into <title>{if isset ($SEO [' title ']) &&!empty ($SEO [' title '])} {$SEO [' title ']} webmaster 168{else}{$SEO [' Site_title ']}{/if}</title>
The header of the content page to create a new template, header_content.html, copy the header.html code, put <title>......</title>Change into <title>{$title}-Webmaster 168 www.cnzz168.com</title>
Modify the first line of the show.html template, {Template "content", "header"} to {Template "content", "header_content"}.
Done, update ere page, column page, content page.
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.