Divi - 我隐藏了全局页眉和页脚,无法找到再次启用的方法

发布于 2025-01-16 02:21:36 字数 235 浏览 3 评论 0原文

我尝试使用 Divi 的前端构建器通过部分设置中的自定义 css (display:none) 隐藏结帐页面的页眉和页脚。 问题是,这禁用了全局页眉和页脚,我无法再看到这些项目来删除代码。 我尝试通过代码 #main-header { display:block!important; 再次启用但它不起作用 有什么想法可以在哪里找到此代码以便将其删除吗?

似乎如果我创建一个新模板可以工作,但我找不到一种方法来启用旧模板。

此致

I've tried to use the frontend builder from Divi to hide the header and footer of the checkout page through Custom css (display:none) at the section settings.
The problem is that this disabled the Global Header and Footer and I can't see the items anymore to remove the code.
I've tried to enable again through the code #main-header { display:block!important; } but it did not work
Any ideas where can I find this code so I can erased it?

Seems like if I create a new template works but I can't find a way to enable the old one.

Best regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

朕就是辣么酷 2025-01-23 02:21:36

如果您通过主题构建器构建了标头,请尝试使用此 CSS
代码

.et_pb_section_0_tb_header {
    display : block;
}

它对我有用的

,只是为了备注,您可以从一页中删除全局标题,而不需要自定义 CSS
查看此博客文章以了解相关知识 https:// /diveindivi.com/remove-the-header-and-footer-of-your-divi-website/

if you've built your header through the theme builder, try to use this CSS
code

.et_pb_section_0_tb_header {
    display : block;
}

it worked for me

and just for remark, you can remove the global header from one page without the need for custom CSS
check this blog post to know-how https://diveindivi.com/remove-the-header-and-footer-of-your-divi-website/

り繁华旳梦境 2025-01-23 02:21:36

不知道为什么我之前的评论被删除了,因为这个解决方案绝对解决了我的问题。但我再说一遍,以防布齐纳·法里德的回答因某种原因不起作用。

我已经通过使用 Divi 主题生成器中的“导出模型”工具成功解决了这个问题。有了原始代码,我搜索了标签“display:none”,删除标签,保存并再次导入。

Not sure why my previous comment was deleted since this solution absolutely solved my problem. But here I go again, in case bouzina farid's answer does not work for some reason.

I've managed to solve the problem by using the tool "Export model" from Divi's Theme Builder. With the raw code in hands I've searched for the tag "display:none", remove the tag, save it and imported again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文