Wordpress theme option to disable search
Bug #692785 reported by
James Tatum
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.
Related branches
lp:~ubuntu-website-community/ubuntu-website/light-wordpress-theme
Ready for review
for merging
into
lp:~cjohnston/ubuntu-website/light-base-theme
- Chris Johnston: Pending requested
Changed in ubuntu-website: | |
status: | New → Fix Committed |
Changed in ubuntu-website: | |
status: | Fix Committed → Confirmed |
status: | Confirmed → Invalid |
status: | Invalid → Fix Committed |
Changed in ubuntu-community-webthemes: | |
status: | New → Fix Released |
assignee: | nobody → Stas Sușcov (sushkov) |
To post a comment you must log in.
You can create a simple plugin like this:
---
<?php
/*
Plugin Name: LoCo Stuff
Author: Your LoCo
*/
function ourloco_ remove_ search( ) { loco_search' , 'ubuntu_ loco_add_ search' ); remove_ search' );
$result = remove_action( 'ubuntu_
}
add_action( 'wp_head', 'ourloco_
?>
---
Check the rev.22