首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >小部件不能滚动-可能是因为缺少小部件ID?

小部件不能滚动-可能是因为缺少小部件ID?
EN

Stack Overflow用户
提问于 2016-11-01 06:44:58
回答 1查看 58关注 0票数 0

我正在尝试在wordpress中创建一个滚动按钮。我可以让搜索功能部件滚动,但不能让按钮部件滚动。以下代码似乎是问题所在:

代码语言:javascript
复制
   <aside class="sidebar sidebar-primary widget-area" role="complementary" aria-label="Primary Sidebar" itemscope itemtype="http://schema.org/WPSideBar">
<!-- fixed widget --><a href="www.weather.com" class="medium otw-red square otw-button">Leave This Site Now!</a>
<!-- fixed widget --><section id="search-2" class="widget widget_search">
<div class="widget-wrap"><form class="search-form" itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction" method="get" action="http://www.example.org/" role="search">
<meta itemprop="target" content="http://www.example.org/?s={s}"/><input itemprop="query-input" type="search" name="s" placeholder="Search this website &#x2026;" />
<input type="submit" value="Search"  /></form></div></section>

使用的插件:按钮插件:https://wordpress.org/plugins/buttons-shortcode-and-widget/

Q2W3按钮插件(我只能发布一个链接,因为我是新用户)

我对此比较陌生,但问题似乎是短码小部件没有小部件ID。我如何为短码小部件创建id,以及将代码放在哪里?

EN

回答 1

Stack Overflow用户

发布于 2016-11-01 13:09:46

所以,我找到了解决方案here。我所要做的就是创建一个文本小部件,将其插入到侧边栏中,然后将短代码放在那里。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40351662

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档