Wordpress theme option to disable search

Bug #692785 reported by James Tatum
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Community Web Themes
Fix Released
Undecided
Stas Sușcov
Ubuntu Website - OBSOLETE
Invalid
Undecided
Unassigned

Bug Description

Our loco is using the wordpress theme with Wordpress as a CMS. The search bar functionality really doesn't fit with our use case. The results are fairly ugly and only display results in wordpress, not in static content or content in other applications. We decided to just disable it by commenting out this line:

include (TEMPLATEPATH . '/searchform.php');

However, even though this is a very minor change, it's not optimal. We would like to stick to the standard theme for easy updates via bzr. A theme option for disabling search would be great.

Revision history for this message
Stas Sușcov (sushkov) wrote :

You can create a simple plugin like this:
---
<?php
/*
Plugin Name: LoCo Stuff
Author: Your LoCo
*/

function ourloco_remove_search() {
 $result = remove_action( 'ubuntu_loco_search', 'ubuntu_loco_add_search' );
}
add_action( 'wp_head', 'ourloco_remove_search' );
?>
---

Check the rev.22

Revision history for this message
Stas Sușcov (sushkov) wrote :

Oops, remove the `$result = ` part, I used it for debugging.

Matthew Nuzum (newz)
Changed in ubuntu-website:
status: New → Fix Committed
Changed in ubuntu-website:
status: Fix Committed → Confirmed
status: Confirmed → Invalid
status: Invalid → Fix Committed
Revision history for this message
Chris Johnston (cjohnston) wrote :

Has this plugin been done and added to the theme?

Changed in ubuntu-website:
status: Fix Committed → Invalid
Changed in ubuntu-community-webthemes:
status: New → Fix Released
assignee: nobody → Stas Sușcov (sushkov)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.