在默认情况下,Zen Cart使用logo.gif作为图片的名称,但你可以使用自己的标志名。
使用图像编辑器,创建新标志,将其保存到includes/templates/CUSTOM/images/your_image_name.,并上传到服务器。
创建新标志后,可以在includes/languages/ENGLISH/header.php文件里调整高度,宽度和标志名称。
define('HEADER_ALT_TEXT',
'Powered by Zen Cart :: The Art of E-Commerce');
define('HEADER_LOGO_WIDTH',
'192px');
define('HEADER_LOGO_HEIGHT',
'64px');
define('HEADER_LOGO_IMAGE',
'logo.gif');
做一些修改,以反映网站名称,宽度,高度和logo的文件名。
保存该文件到 includes/languages/ENGLISH/CUSTOM/header.php文件,并上传到服务器。
默认情况下,标志是左对齐的。修改对齐方式涉及到修改includes/templates/CUSTOM/css/stylesheet.css.
文件。打开文件,找到以下内容:
#logo,
.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents,
.centerBoxContentsAlsoPurch, .attribImg {float: left;}
因为这是几个“选择”的集合(#logo, .centerBoxContents,等),为了不干扰其他部分的布局,将它分成两个单独的语句,并在它下面创建一个新的选择或定义,像这样:
.centerBoxContents,
.specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch,
.attribImg {float: left;}
#logo {float: left;}
使用文本对齐方式使标志中间对齐:中间,或使用浮动对齐到右边;
进行必要的修改,保存该文件到includes/templates/CUSTOM/css/stylesheet.css 中,并上传到服务器。 |