widget – editing code
-
widget – editing code
Hello!
If I want to edit a code of some template – it’s easy – just going to /wp-admin/theme-editor.phpIf I want to edit a widget code – where to do it???
For example, just added a Search-widget to sidebar, but the search-field isn’t transparent. Where to change it?
Thanx a lot!
-
then you can try to change sidebar.php but what you need is edit the style, which is in style.css.
good luck
well,
as you see in sidebar there’s a search widget.
as we can see from code it’s:<li id="search-4" class="widget widget_search"><h2 class="widgettitle">Пошук</h2> <form role="search" method="get" id="searchform" action="http://x-files.net.ua/" > <div><label class="screen-reader-text" for="s">Шукати:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Пошук" /> </div> </form></li>but in style.css i can’t find any search-4 or widget widget_search.
please help, ‘m not so good in such stuff.. 🙁
in style.css i changed from
/********** MAIN **********/ body, input, textarea {font: 13px/1.5 Verdana, Arial, Helvetica, sans-serif; background: transparent url("images/leather.jpg");}to
/********** MAIN **********/ body {font: 13px/1.5 Verdana, Arial, Helvetica, sans-serif; background: transparent url("images/leather.jpg");}it’s better, but stlii to find out how to make it transparent, so we would see a leather under the search field.
help please../********** MAIN **********/ input, textarea {font: 13px/1.5 Verdana, Arial, Helvetica, sans-serif; background: transparent;} body {font: 13px/1.5 Verdana, Arial, Helvetica, sans-serif; background: transparent url("images/leather.jpg");}and now what i needed! 🙂
<!-- the sidebar has been formatted to make the theme widget ready --> <ul class="sidebar"> <li id="search-7" class="widget widget_search"><form role="search" method="get" id="searchform" action="http://example.net.ua/" > <div><label class="screen-reader-text" for="s">Search:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form></li>tell me please, where in style.css or any else place i can change the width of search field???
thanx.
P.S. search-form is added to site as widget.
<!-- the sidebar has been formatted to make the theme widget ready --> <ul class="sidebar"> <li id="mycategoryorder" class="widget widget_categories"><h2 class="widgettitle">Сезони</h2> <ul> <li class="cat-item cat-item-11"><a href="http://x-files.net.ua/?cat=11" title="Перший сезон">Перший сезон</a> </li> <li class="cat-item cat-item-3"><a href="http://x-files.net.ua/?cat=3" title="Другий сезон">Другий сезон</a> </li> </ul> </li>i added a list of categories to sidebar as widget (My Categories plugin)
and now I can’t find where to remove a “li”-code.Help please.
Bit late,
But in wordpress 3.0 the code for the search widget is located in the folder wp-includes > general-template.php.
Good luck!
The topic ‘widget – editing code’ is closed to new replies.