How to customize the reading of the title in ecmall template editing, ecmall template
I encountered a problem, the ecmall project has just been launched. The customer said that the title does not need the four words "mall homepage".
I went to look for it in the source code, and it took me a long time to find it.
The problem is described as follows:
Find the original template themesmalltmalltop.html of title, and open it:
- <head>
- <base href="{$site_url}/" />
- <meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
-
- <span style="color:#ff0000;">{$page_seo}span> ;
- <meta name="viewport" content="width=1200, initial-scale=1.0, minimum-scale=0.5, maximum- scale=2.0, user-scalable=yes" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
-
<meta name="format-detection" content="telephone=no" />
- <link rel="shortcut icon" href=" http://www.ya-jing.cn "/> ;
tag is: $page_seo
The title description keywords are written together. If you change the title alone, you need to find the definition of $page_seo in ecmall.
After searching a lot, I finally found it. Here: appdefault.app.php
Open as follows:
-
-
- class DefaultApp extends MallbaseApp
- {
- function index()
- {
- $this->assign('index', 1);
- $this->assign('icp_number', Conf::get('icp_number'));
-
- $this->_config_seo(array(
- - ' . Conf::get('site_title'),
));
- $this->assign(
'page_description', Conf::get(- 'site_description'));
-
$this->assign('page_keywords', Conf::get('site_keywords'));
-
$this->display('index.html');
-
}
}
-
?> -
-
For the code marked in red, remove lang::get(‘mall_index’). That’s it.
-
Project address: www.meichigou.com, newly launched today. Welcome everyone’s guidance. In addition, there are two other projects in progress, one of which is going smoothly.
http://www.bkjia.com/PHPjc/973825.html
www.bkjia.com
truehttp: //www.bkjia.com/PHPjc/973825.htmlTechArticleHow to customize the reading of the title in ecmall template editing. The ecmall template encountered a problem. The ecmall project has just been launched. . The customer said that the title does not need the four words "mall homepage". I go to the source code...