我在WordPress Avada主题中添加了代码元素,融合页面生成器 页面链接: 我面临的问题是,当我向下滚动时,侧边栏与页脚重叠
我找不到免费的过滤器插件,因此尝试在页面构建器插件中添加外部代码元素 我已经尝试过搜索和过滤WordPress插件,但对我不起作用
/* --------------------------------
xfilter
-------------------------------- */
.cd-filter {
position:absolute;
top: 0;
left: 0;
width: 280px;
height: 100%;
background: #ffffff;
box-shadow: 4px 4px 20px transparent;
z-index: 0;
/* Force Hardware Acceleration in WebKit */
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transform: translateX(-100%);
-moz-transform: translateX(-100%);
-ms-transform: translateX(-100%);
-o-transform: translateX(-100%);
transform: translateX(-100%);
-webkit-transition: -webkit-transform 0.3s, box-shadow 0.3s;
-moz-transition: -moz-transform 0.3s, box-shadow 0.3s;
transition: transform 0.3s, box-shadow 0.3s;
}
.cd-filter form {
padding: 70px 20px;
}
@media only screen and (min-width: 1170px) {
.cd-filter {
width: 20%;
}
.cd-filter form {
padding: 70px 10%;
}
}
.cd-filter-trigger {
position: absolute;
top: 0;
left: 0;
height: 50px;
line-height: 50px;
width: 60px;
/* image replacement */
overflow: hidden;
text-indent: 100%;
color: transparent;
white-space: nowrap;
background: transparent url("../img/cd-icon-filter.svg") no-repeat center center;
z-index: 3;
}
.cd-filter .cd-close {
position: absolute;
top: 0;
right: 0;
height: 50px;
line-height: 50px;
width: 60px;
color: #ffffff;
font-size: 1.3rem;
text-align: center;
background: #37296a;
opacity: 0;
-webkit-transition: opacity 0.3s;
-moz-transition: opacity 0.3s;
transition: opacity 0.3s;
z-index: 3;
}
.no-touch .cd-filter .cd-close:hover {
background: #32255f;
}
.cd-filter.filter-is-visible {
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2);
}
.cd-filter.filter-is-visible .cd-close {
opacity: 1;
}
.cd-filter::before {
/* top colored bar */
content: '';
position: absolute;
top: 0;
left: 0;
height: 50px;
width: 100%;
background-color: #41307c;
z-index: 2;
}
.cd-filter-trigger.filter-is-visible {
pointer-events: none;
}
@media only screen and (min-width: 1170px) {
.cd-filter-trigger {
width: auto;
left: 2%;
text-indent: 0;
color: #9a9a9a;
text-transform: uppercase;
font-size: 1.3rem;
font-weight: 700;
padding-left: 24px;
background-position: left center;
-webkit-transition: color 0.3s;
-moz-transition: color 0.3s;
transition: color 0.3s;
}
.no-touch .cd-filter-trigger:hover {
color: #41307c;
}
.cd-filter-trigger.filter-is-visible, .cd-filter-trigger.filter-is-visible:hover {
color: #ffffff;
}
}
/* --------------------------------
<div class="cd-filter filter-is-visible">
<form>
<div class="cd-filter-block">
<h4 data-fontsize="20" data-lineheight="31">Select Product</h4>
<div class="cd-filter-content">
<div class="cd-select cd-filters">
<select class="filter" name="selectThis" id="selectThis">
<option value="">Choose an option</option>
<option value=".option1">Microsoft Dynamics NAV</option>
<option value=".option2">Microsoft dynamics 365 Business Central</option>
<option value=".option3">Microsoft Dynamics CRM</option>
<option value=".option4">Microsoft Dynamics C5</option>
</select>
</div> <!-- cd-select -->
</div> <!-- cd-filter-content -->
</div> <!-- cd-filter-block -->
<div class="cd-filter-block">
<h4 data-fontsize="20" data-lineheight="31">Select Region</h4>
<ul class="cd-filter-content cd-filters list">
<li>
<input class="filter" data-filter="" type="radio" name="radioButton" id="radio1" checked="">
<label class="radio-label" for="radio1">All</label>
</li>
<li>
<input class="filter" data-filter=".radio2" type="radio" name="radioButton" id="radio2">
<label class="radio-label" for="radio2">Middle east</label>
</li>
<li>
<input class="filter" data-filter=".radio3" type="radio" name="radioButton" id="radio3">
<label class="radio-label" for="radio3">Nordic</label>
</li>
</ul> <!-- cd-filter-content -->
</div> <!-- cd-filter-block -->
</form>
<a href="#0" class="cd-close">Close</a>
</div> <!-- cd-filter -->
<a href="#0" class="cd-filter-trigger filter-is-visible">Filters</a>
</main> <!-- cd-main-content -->
<script src="https://dynamics360.net/wp-content/themes/Avada/assets/min/test/jquery-2.1.1.js"></script>
<script src="https://dynamics360.net/wp-content/themes/Avada/assets/min/test/jquery.mixitup.min.js"></script>
<script src="https://dynamics360.net/wp-content/themes/Avada/assets/min/test/main.js"></script> <div class="fusion-clearfix"></div>
</div>
</div></div></div>
</div>
</div>
</section>
</div> <!-- fusion-row -->
</main>