主页无内容时,躲藏默许信息“No front page content has been created yet”ITeye - 众发娱乐

主页无内容时,躲藏默许信息“No front page content has been created yet”ITeye

2019-01-14 04:57:05 | 作者: 天薇 | 标签: | 浏览: 1627

In hook_preprocess_page() ... https://groups.drupal.org/node/229993
function YOURTHEME_preprocess_page( $variables) {
 if($variables[is_front]){
 $variables[title] = ; // This is optional ... it removes the default Welcome to @site-name
 $variables[page][content][system_main][default_message] = array(); // This will remove the No front page content has been created yet.
}
版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表众发娱乐立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章