Forums

widget - editing code (7 posts)

  1. ka81
    Member
    Posted 1 month ago #

    widget - editing code

    Hello!
    If I want to edit a code of some template - it's easy - just going to /wp-admin/theme-editor.php

    If 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!

  2. eedavidee
    Member
    Posted 1 month ago #

    then you can try to change sidebar.php but what you need is edit the style, which is in style.css.

    good luck

  3. ka81
    Member
    Posted 1 month ago #

  4. ka81
    Member
    Posted 1 month ago #

    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..

  5. ka81
    Member
    Posted 1 month ago #

    /********** 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! :)

  6. ka81
    Member
    Posted 3 weeks ago #

    <!-- 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.

  7. ka81
    Member
    Posted 3 weeks ago #

    <!-- 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.

Reply

You must log in to post.

About this Topic