【发布时间】:2016-06-27 05:50:03
【问题描述】:
您好,我目前正在处理位于here 的网页。这是一个 wordpress 网站,它使用一个名为 The7 的主题,该主题包括一种名为“点击导航”的菜单,它运行良好,但是我一直试图将左侧菜单的初始状态设置为 show-header的默认封闭标题,并且无法这样做。
我注意到最初检查网站的 html、body 和 id 为 #page 的 div 的类从:
<html class= "js no-touch cssanimations csstransforms csstransforms3d csstransitions cssfilters mobile-false not-iOS">
<body class="home page page-id-11 page-template-default logged-in small-hover-icons header-side-left sticky-header slide-header-animation header-side-line header-above-side-line srcset-enabled btn-flat custom-btn-color custom-btn-hover-color filter-style-minimal contact-form-minimal small-fancy-datas semitransparent-bullets bold-icons phantom-fade phantom-shadow-decoration phantom-main-logo-on floating-mobile-menu-icon first-switch-logo-left first-switch-menu-right second-switch-logo-left second-switch-menu-right layzr-loading-on wpb-js-composer js-comp-ver-4.9.2 vc_responsive outlined-portfolio-icons album-minuatures-style-2 is-webkit no-mobile esg-blurlistenerexists closed-overlay-mobile-header">
<div id="page" class="closed-mobile-header">
手动打开左侧菜单时如下。
<html class= "js no-touch cssanimations csstransforms csstransforms3d csstransitions cssfilters mobile-false not-iOS menu-open">
<body class="home page page-id-11 page-template-default logged-in small-hover-icons header-side-left sticky-header slide-header-animation header-side-line header-above-side-line srcset-enabled btn-flat custom-btn-color custom-btn-hover-color filter-style-minimal contact-form-minimal small-fancy-datas semitransparent-bullets bold-icons phantom-fade phantom-shadow-decoration phantom-main-logo-on floating-mobile-menu-icon first-switch-logo-left first-switch-menu-right second-switch-logo-left second-switch-menu-right layzr-loading-on wpb-js-composer js-comp-ver-4.9.2 vc_responsive outlined-portfolio-icons album-minuatures-style-2 is-webkit no-mobile esg-blurlistenerexists closed-overlay-mobile-header show-sticky-header">
<div id="page" class="closed-mobile-header show-header">
我已尝试了解是否可以更改网页的 CSS 或 JS 值,但不知道必须在哪里更改。 感谢您的帮助。
【问题讨论】:
标签: javascript css wordpress menu header