1、首先进入登录你的淘宝账号进入卖家中心,在左侧的导航内找到店铺装修。
2、点击打开编辑店招,选择自定义招牌。
3、搜索框代码,代码如下:<form action="你的店铺首页链接/search.htm" method="post" target="_blank" style="width:100%;height:auto;line-height: 0px;"> <input name="keyword" style="width:搜索框宽度-5px;height:搜索框高度-2px;border:1px solid 搜索框颜色;float: left;color: 搜索框文字颜色;font-size: 14px;padding-left: 5px;" value="关键词" /> <button type="submit" style="width:按钮宽度;height:按钮高度;border:0;float: left;color: 按钮文字颜色;font-size: 14px;background: 按钮背景颜色;cursor: pointer" />搜索</button></form>只要把里面的中文换成你的设置即可,全部修改完成后,在源码状态下,直接复制进去。
4、点击保存,然后预览,即可看到你的效果。确保无误,即刻发布,完成搜索框的自定义添加