2016-10-31 8 views
0

私はワードプレスでスクロールボタンを作ろうとしています。スクロールする検索機能ウィジェットを取得できますが、ボタンウィジェットは取得できません。次のコードは、問題のように見える:使用ウィジェットがスクロールしない - ウィジェットIDがないために可能ですか?

<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ボタンプラグイン(私は新しいユーザですので、私は1つのリンクのみを投稿することができます)

私はそれに対して比較的新しいですが、ショートコードウィジェットにウィジェットIDがないという問題があるようです。ショートコードウィジェットのIDを作成するにはどうすればいいですか?コードを配置する場所はどこですか?

+0

私はあなたが少し試してみることをお勧めします。 –

答えて

0

だから、私は解決策を見つけたhere。私がしなければならなかったのは、テキストウィジェットを作成し、サイドバーに挿入してそこにショートコードを配置することでした。

関連する問題