gpt4 book ai didi

html - 隐藏类别 div block ,从响应式布局中 100% 展开幻灯片

转载 作者:太空宇宙 更新时间:2023-11-04 10:06:12 25 4
gpt4 key购买 nike

我正在使用 http://themeglobal.com/opencart/kingstore/doc/#!/layout模板

在菜单下方,我想隐藏类别 block 并将幻灯片和两个横幅展开到 100%,(幻灯片赢得所有可用空间,横幅保持原来的大小)。

我不想在以前存在类别的地方有空白。

我确实评论了这一行 class="col-sm-<?php echo $grid_center; ?>"尝试使用固定在 12 的 css 类,我仍然有空白要填充。

如何在没有类别的情况下让幻灯片放映全 Angular ? (themeglobal.com/opencart/kingstore/doc/#!/layout) 并保持响应。

<?php //$grid_center = 12; if( count($headerleft) ) { $grid_center = 9; } ?>
<?php $grid_center = 11; ?>
<div class="col-sm-<?php echo $grid_center; ?>">

<div class="row">
<?php
$grid_header_top = 12;
$grid_content_right = 3;
$header_right = $modules_old_opencart->getModules('header_right');
if( count($header_right) ) {
if($grid_center == 9) {
$grid_header_top = 8;
$grid_content_right = 4;
} else {
$grid_header_top = 9;
$grid_content_right = 3;
}
}
?>

这是原文:Demo Kingstore lite

最佳答案

尝试从管理面板 > 设计 > 布局 > 您的布局名称(主页)中删除类别模块(位置 - 标题左侧)。

如果可能的话,从 catalog/view/theme/applied_theme_name/template/common/home.tpl 文件中添加更多代码

编辑:通过仅从布局中删除类别模块(在 2.1.x 版上测试)对我有用。找到以下代码:

    <?php $grid_center = 12; if( count($headerleft) ) { $grid_center = 9; } ?>
<div class="col-sm-<?php echo $grid_center; ?>">
<div class="row">
<?php
$grid_header_top = 12;
$grid_content_right = 3;
$header_right = $modules->getModules('header_right');
if( count($header_right) ) {
if($grid_center == 9) {
$grid_header_top = 8;
$grid_content_right = 4;
} else {
$grid_header_top = 9;
$grid_content_right = 3;
}
}
?>

看来您已经更改了第一行,请恢复这些更改并尝试。

希望对你有帮助。

关于html - 隐藏类别 div block ,从响应式布局中 100% 展开幻灯片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37989903/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com