In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of modifying the TITLE tag of DEDECMS web page, which has a certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
How to modify the TITLE tag of DEDECMS web page?
The modification of TITLE tags on DEDECMS pages is beneficial to optimization.
It is said that Baidu basically doesn't read keyword now (of course we have to write), but the key now is the title on the web page. So be sure to do title well. It is mainly related to the problem of how to realize "third-level column _ second-level column _ first-level column _ website name". The title of most websites today basically does this:
Recommended study: dream weaving cms
Home page:
{dede:global.cfg_webname/}, write the title information of the first page in the website name in "system Settings" → "system basic parameters".
Column page:
Find include/typelink.class.php line 164 or so, find
$this- > valuePositionName = $tinfos ['typename']. $this- > SplitSymbol.$this- > valuePositionName
Modified to:
$this- > valuePositionName = $this- > valuePositionName.$this- > SplitSymbol.$tinfos ['typename']
Next, change the default title tag on the list page template
{dede:field.title/}-{dede:global.cfg_webname/}
Modified to:
{dede:field. Optimize title /} {dede:field.title function='ereg_replace ("-", "-", @ me)'/}-{dede:global.cfg_webname/}
That's it.
The first label {dede:field. Optimize title /} is the optimized title of the calling column. If you are not satisfied with the connector in the middle of the column, you can modify include/arc.listview.class.php to find 55 lines
$this- > Fields ['title'] = ereg_replace ("[]", "/", $this- > TypeLink- > GetPositionLink (false))
Put / delete note and leave a space ""
Article page:
{dede:field. Optimize title/} {dede:field name='title'/}-{dede:field name='position' runphp='yes'} $tc= "-"; / / the delimiter $tw=$GLOBALS ['cfg_list_symbol']; / / call the position delimiter @ me=html2text (@ me); / / remove the html tag $tf=split ($tw,@me); / / decompose it into an array for ($ta= (count ($tf)-2); $ta > = 1 $ta--) {/ / Loop assign to $tk $tk.=trim ($tf [$ta]). $tc;} $tk=substr ($tk,0,-1); @ me=$tk; / / assign to @ me {/ dede:field}-{dede:global name='cfg_webname'/}
Effect: realize "third-level column _ second-level column _ first-level column _ website name". The abbreviated title {dede:field. Optimize title/} to do what, yes-long tail keyword.
Thank you for reading this article carefully. I hope the editor will share the method and content of modifying the TITLE tag of the DEDECMS web page to help everyone. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.