我是wordpress的新手。我已经在wordpress中开发了一个主题, 其中的header.php中我想添加一个带有导航栏的搜索框。我尝试了很多, 但无法在我开发的wordpress自定义主题的header.php中添加带有图标的搜索框。
请帮助我解决此问题。
#1
尝试从此处下载Font-Awesome字体和样式表, 然后使用特定图标所需的类:)你将在其网站上找到更多说明。
编辑1
在标题部分尝试添加
get_search_form ()
2.将以下代码添加到你的searchform.php文件中(如果没有, 则创建)
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<div>
<input type="text" size="18" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" class="btn" />
</div>
</form>
来源:
https://www.srcmini02.com/66845.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_40288.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57