[英]Overriding CSS in a child of the WordPress TwentyTen theme not taking effect
[英]How can i customize my search widget in wordpress twentyten theme?
我正在使用wordpress twentyten主题。
在这里我设置了搜索小部件。
现在我想自定义我的搜索选项,看起来像,
我想要像它一样chane
谁能告诉我在哪里需要改变?
wordpress搜索表单的<?php get_search_form(); ?>
是<?php get_search_form(); ?>
<?php get_search_form(); ?>
在浏览器中写出以下内容
<form method="get" id="searchform" action="http://www.your-url.org.uk/">
<div><label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="" name="s" id="s">
<input type="submit" id="searchsubmit" value="Search">
</div>
</form>
因此,您需要在主题的样式表中找到#searchform,然后从那里自定义css。 如果您需要更多帮助,请尝试下载firebug并使用它来检查现有的Css。
由于我无法看到该网站,因此我将向您展示如何使用Google Chromes开发人员工具解决问题
但我建议您创建一个WordPress子主题,而不是直接修改TwentyEleven主题,因为如果更新您的WordPress网站(经常发生),您的所有更改都将丢失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.