我正在尝试在wordpress中创建一个滚动按钮。我可以让搜索功能部件滚动,但不能让按钮部件滚动。以下代码似乎是问题所在:
<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 …" />
<input type="submit" value="Search" /></form></div></section>使用的插件:按钮插件:https://wordpress.org/plugins/buttons-shortcode-and-widget/
Q2W3按钮插件(我只能发布一个链接,因为我是新用户)
我对此比较陌生,但问题似乎是短码小部件没有小部件ID。我如何为短码小部件创建id,以及将代码放在哪里?
发布于 2016-11-01 13:09:46
所以,我找到了解决方案here。我所要做的就是创建一个文本小部件,将其插入到侧边栏中,然后将短代码放在那里。
https://stackoverflow.com/questions/40351662
复制相似问题