暖岛B2子主题搜索模块是一个HTML模块,所以没什么难度。
效果图
添加代码
按下面步骤来就行。
- 网站后台-B2主题设置-模块设置-首页-添加新模块
- 模块标题:搜索(可修改)
- 模块key:search(可修改)
- 调用内容:HTML
代码
<section class="search"> <h2>暖岛 - 美好生活研究所。</h2> <form method="get" action="https://zizhuti.nuandao.cn/"> <input type="search" placeholder="输入关键字搜索" autocomplete="off" value="" name="s" required="required"> <button type="submit" class="button">搜你喜欢</button> <i class="b2font b2-search"></i> </form> <div class="searchTag"> <span><i class="b2font b2-hot"></i>热门推荐:</span> <a href="https://zizhuti.nuandao.cn/style/b2" rel="external nofollow" target="_blank">b2主题美化</a> <a href="https://zizhuti.nuandao.cn/inspiration/webui" rel="external nofollow" target="_blank">网页灵感</a> <a href="https://zizhuti.nuandao.cn/theme" rel="external nofollow" target="_blank">免费WordPress主题</a> </div> </section>
将上面网址修改成自己的网址即可
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。