Cutline Theme Support Forums » Tips & Tricks

Fixing search widget style (yes, the widget)

(1 post)
  • Started 4 years ago by Krofinzki

  1. Krofinzki
    Member

    You might have noticed that the search widget isn't using the correct style when using this theme. Here's a non-dirty fix (In other words: without editing r_sidebar.php, so that you can still use the nifty widget interface to move the search-widget around):

    Open up the theme's functions.php and add this at the very end:

    <?php
    function widget_override_search(){
    ?>
    <li class="widget">
    <h2>Search It!</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

  2. <?php
    }
    if ( function_exists('register_sidebar_widget') )
    register_sidebar_widget(__('Search'), 'widget_override_search');
    ?>

    That's it! Now your search-widget should be working perfectly.

Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.