ThemeShaper Forums » Thematic

[closed]

Thematic Search and Meta Widget

(5 posts)
  • Started 9 years ago by sareiodata
  • Latest reply from Chris
  • This topic is not resolved
  1. Hi.

    Just come across a somewhat strange issue. I wanted to add a search widget with the title "Search the Site". In my widgets panel there was however two available search widgets: the Thematic one and the default Wordpress one (that gave me the possibility to change the title).

    The problem is that the title wouldn't save. Also if I added just the Wordpress widget it wouldn't be displayed at all.

    Something similar is happening with the Meta widget.

    I looked into Thematic and the issue was happening because two lines in the widgets.php file:

    unregister_widget_control('search');
    unregister_widget_control('meta');

    Now... my question is... why do we need to unregister the widget controls for search and meta?

    Posted 9 years ago #
  2. Hi Cristian,

    looks like a bug :-)

    Normally I would unregister these widgets completely for the missing markup.

    Chris

    Posted 9 years ago #
  3. So, if this is a bug, will it be fixed in the next update to Thematic??

    I also noticed there are two different Search widgets in Thematic. One of them works. The other one doesn't work (but it has the appealing feature that lets you change its title).

    What is the proper way to remove the faulty Search widget so blog admins are not tempted/frustrated using it?

    -- dxjones

    Posted 9 years ago #
  4. Hi guys-

    Until this gets addressed in thematic... Here's what I've been using to remove the default widgets in child themes on WP 2.8 installations.

    function child_remove_default_widgets() {
    
    	// WP 2.8 function using $widget_class
    	if (function_exists('unregister_widget')) {
    		unregister_widget('WP_Widget_Meta');
    		unregister_widget('WP_Widget_Search');
    	}
    
    }
    add_action('widgets_init', 'child_remove_default_widgets');

    -Gene

    Posted 9 years ago #
  5. @Gene: Thanks for your help :)

    Fixed in revision 589

    Chris

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.