質問編集履歴

2

追加

2017/04/02 07:52

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -169,3 +169,35 @@
169
169
  ```
170
170
 
171
171
  最後の`<button>`です。
172
+
173
+
174
+
175
+ ―――――――――――――――――――――――――――――――――――――
176
+
177
+
178
+
179
+ すみません。
180
+
181
+ 投稿フォームなのですが、こちらはどうすればいいでしょうか?
182
+
183
+
184
+
185
+ ```html
186
+
187
+ <?php $form = '
188
+
189
+ <form method="get" class="searchform" action="' . esc_url( home_url( '/' ) ) . '">
190
+
191
+ <input type="text" placeholder="search" value="" name="s" class="s">
192
+
193
+ <input type="submit" class="searchsubmit" value="<i class="fa fa-search" aria-hidden="true"></i>">
194
+
195
+ </form>';
196
+
197
+ echo $form; ?>
198
+
199
+ ```
200
+
201
+ 最後の
202
+
203
+ ``<input type="submit" class="searchsubmit" value="<i class="fa fa-search" aria-hidden="true"></i>">``に悩んでいます。

1

追記、修正。

2017/04/02 07:52

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -53,3 +53,119 @@
53
53
  ``$asidButton.text('<i class="fa fa-arrow-circle-right" aria-hidden="true"></i>')};``
54
54
 
55
55
  が問題になっています。
56
+
57
+
58
+
59
+ ―――――――――――――――――――――――――――――――――――――――
60
+
61
+
62
+
63
+ wordpressなので、sidebar.phpに書いています。
64
+
65
+ ```php
66
+
67
+ </div><!-- main -->
68
+
69
+ </main>
70
+
71
+ <aside>
72
+
73
+ <div id="sidebar" class="md-4">
74
+
75
+ <?php if ( is_active_sidebar( 'sidebar' ) ) :
76
+
77
+ dynamic_sidebar( 'sidebar' );
78
+
79
+ endif; ?>
80
+
81
+ <button><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></button>
82
+
83
+ </div><!-- sidebar -->
84
+
85
+ </aside>
86
+
87
+ ```
88
+
89
+ 下にソースで表示したものを書きます。
90
+
91
+ ```html
92
+
93
+ <div id="sidebar" class="md-4">
94
+
95
+ <div class="widget">
96
+
97
+ <form method="get" class="searchform" action="http://127.0.0.1:4001/wordpress/">
98
+
99
+ <input type="text" placeholder="search" value="" name="s" class="s">
100
+
101
+ <input type="submit" class="searchsubmit" value="S">
102
+
103
+ </form></div> <div class="widget"> <p class="bold">最近の投稿</p> <ul>
104
+
105
+ <li>
106
+
107
+ <a href="http://127.0.0.1:4001/wordpress/archives/472">472</a>
108
+
109
+ </li>
110
+
111
+ <li>
112
+
113
+ <a href="http://127.0.0.1:4001/wordpress/archives/466">aaaaaaaaa</a>
114
+
115
+ </li>
116
+
117
+ <li>
118
+
119
+ <a href="http://127.0.0.1:4001/wordpress/archives/464">hhhhh</a>
120
+
121
+ </li>
122
+
123
+ <li>
124
+
125
+ <a href="http://127.0.0.1:4001/wordpress/archives/462">aaaaaaaaa</a>
126
+
127
+ </li>
128
+
129
+ <li>
130
+
131
+ <a href="http://127.0.0.1:4001/wordpress/archives/460">test</a>
132
+
133
+ </li>
134
+
135
+ </ul>
136
+
137
+ </div> <div class="widget"><p class="bold">最近のコメント</p><ul id="recentcomments"><li class="recentcomments"><a href="http://127.0.0.1:4001/wordpress/archives/45#comment-19">A Post With Everything In It</a> に <span class="comment-author-link">admin</span> より</li><li class="recentcomments"><a href="http://127.0.0.1:4001/wordpress/archives/1#comment-1">Hello world!</a> に <span class="comment-author-link"><a href='http://wordpress.org/' rel='external nofollow' class='url'>Mr WordPress</a></span> より</li><li class="recentcomments"><a href="http://127.0.0.1:4001/wordpress/archives/57#comment-15">Another Post with Everything In It</a> に <span class="comment-author-link"><a href='http://wpcandy.com' rel='external nofollow' class='url'>Dan Philibin</a></span> より</li><li class="recentcomments"><a href="http://127.0.0.1:4001/wordpress/archives/45#comment-11">A Post With Everything In It</a> に <span class="comment-author-link"><a href='http://wpcandy.com' rel='external nofollow' class='url'>Dan Philibin</a></span> より</li><li class="recentcomments"><a href="http://127.0.0.1:4001/wordpress/archives/43#comment-9">Quotes Time!</a> に <span class="comment-author-link"><a href='http://wpcandy.com' rel='external nofollow' class='url'>Dan Philibin</a></span> より</li></ul></div><div class="widget"><p class="bold">アーカイブ</p> <ul>
138
+
139
+ <li><a href='http://127.0.0.1:4001/wordpress/archives/date/2017/03'>2017年3月</a></li>
140
+
141
+ <li><a href='http://127.0.0.1:4001/wordpress/archives/date/2017/02'>2017年2月</a></li>
142
+
143
+ <li><a href='http://127.0.0.1:4001/wordpress/archives/date/2017/01'>2017年1月</a></li>
144
+
145
+ <li><a href='http://127.0.0.1:4001/wordpress/archives/date/2016/12'>2016年12月</a></li>
146
+
147
+ <li><a href='http://127.0.0.1:4001/wordpress/archives/date/2012/10'>2012年10月</a></li>
148
+
149
+ <li><a href='http://127.0.0.1:4001/wordpress/archives/date/2008/09'>2008年9月</a></li>
150
+
151
+ <li><a href='http://127.0.0.1:4001/wordpress/archives/date/2008/08'>2008年8月</a></li>
152
+
153
+ </ul>
154
+
155
+ </div><div class="widget"><p class="bold">メタ情報</p> <ul>
156
+
157
+ <li><a href="http://127.0.0.1:4001/wordpress/wp-admin/">サイト管理</a></li> <li><a href="http://127.0.0.1:4001/wordpress/wp-login.php?action=logout&#038;_wpnonce=446c57c3ad">ログアウト</a></li>
158
+
159
+ <li><a href="http://127.0.0.1:4001/wordpress/feed">投稿の <abbr title="Really Simple Syndication">RSS</abbr></a></li>
160
+
161
+ <li><a href="http://127.0.0.1:4001/wordpress/comments/feed">コメントの <abbr title="Really Simple Syndication">RSS</abbr></a></li>
162
+
163
+ <li><a href="https://ja.wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li> </ul>
164
+
165
+ </div> <button><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></button>
166
+
167
+ </div><!-- sidebar -->
168
+
169
+ ```
170
+
171
+ 最後の`<button>`です。