I encountered a problem with the newly launched ecmall project. 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 of title, themesmalltmalltop.html, 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 "/>
Tagged: $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('icp_number', Conf::get('icp_number'));
, site_title'), -
- ));
- $this->assign('page_description', Conf::get('site_description'));
$this->assign('page_keywords', Conf::get(
'site_keywords'));
-
}
}
?>
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. -
The above introduces how to customize the reading of the title in ecmall template editing, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials. -
Statement: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