css - 粘性菜单 wordpress

标签 css wordpress themes sticky

我想禁用我的 wordpress 网站的粘性菜单,我正在使用主题 swimmingpool & SPA,当我想自定义我的主题时,没有关于标题的自定义,我已经尝试了一些 CSS 但它仍然没有工作...

我已经试过了:

header .container_wrap_menu {
 position: relative !important; 
} 

.master_header {
 position: absolute;
}

如果有人有任何解决方案,我将非常高兴。

提前致谢

最佳答案

如果我是正确的,这可能会有所帮助,所以转到您的 css 目录,找到 swimmingpool.css 并打开它。

在文件中搜索 .topclass.topclass-shrink 并删除 position: fixed; 使其保持在顶部以便滚动..

(class 可能被称为 .topclass.topclass-shrink 之外的东西,重点是从 css 文件中删除 fixed,不要用 !important 覆盖它这是非常糟糕的做法,而是注释掉样式并为其添加新样式)

comment out = //position: fixed

comment in = position: relative

提示:只要看看您的移动版本,我就不确定您的样式或功能是什么,因为没有提供太多可供使用的功能,但只要确保您的汉堡菜单在您需要时显示移动菜单。可能要添加媒体查询和 display 属性。

关于css - 粘性菜单 wordpress,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47750702/

相关文章:

php - 从单个帖子获取 Wordpress 类别

php - 将鼠标悬停在另一个 div 上时向右旋转和移动图像

html - Webpack:加载 *.eot 字体时出现 "OTS parsing error: invalid version tag"

mysql - 如何删除 WordPress 中垃圾邮件添加的私有(private)页面

php - Wordpress 自定义表格使 seo 友好的 url

WordPress 主题编辑器缺失

html - 在 iOS 上,Safari : How to prevent the underlay page/main page from scrolling but beyond the overlay. Overlay 应该可以滚动

html - 防止表格单元格增加其宽度以包含宽内容

css - Wordpress 插件 CSS 顺序

winapi - Windows 资源管理器悬停和选择的视觉样式