• Hi everyone quick question. Now I have researched high and low and I have not found anything that addresses the issue I have at hand.

    If you go here: wpdemo.tsquez.com

    you will notice that I have the widgets “widgetized”. You will also notice that the search widget has a different color to it. Now I defined how the search widget should look in the functions.php file and here is what it looks like:

    <?php
    
    if ( function_exists('register_sidebar') )
    	register_sidebar(array('name'=>'sidebar',
    
            'before_widget' => '<div class="box">',
    
            'after_widget' => '<div class="boxbot"></div></div>',
    
            'before_title' => '<h2 class="widgettitle">',
    
            'after_title' => '</h2>',
    
        ));
    function widget_mytheme_search() {
    ?>
    <div class="sbox">
    	<h2 class="swidgettitle">Search</h2>
    		<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    		<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" alt="text" />
    		<input type="submit" id="searchsubmit" value="Search" alt="Submit" class="srcbutton" /></div>
    		</form>
            <div class="sboxbot"></div>
    </div>
    <?php
    }
    if ( function_exists('register_sidebar_widget') )
        register_sidebar_widget(__('Search'), 'widget_mytheme_search');
    
    ?>

    What I want to do is give pages, archives, categories, blogrool and meta a different color like the search widget (the color of the graphics is different). all the other plugins that will be used will have the look they have now, just white graphics.

    If anyone can look at the function.php code I posted and maybe tell me how to define the look for those widgets in that functions.php file it would be greatly appreciated. Thank you.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Styling different widgets’ is closed to new replies.