public
Created

Easy Digital Downloads Search Widget plugin v1.0+ -- filters and constants for customizing and branding

  • Download Gist
edd-search-widget.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<?php
 
/** Easy Digital Downloads Search Widget: Remove Search Label */
define( 'EDDSW_SEARCH_LABEL_DISPLAY', false );
 
 
add_filter( 'eddsw_filter_label_string', 'custom_eddsw_label_string' );
/**
* Easy Digital Downloads Search Widget: Custom Search Label
*/
function custom_eddsw_label_string() {
return __( 'Your custom search label text', 'your-theme-textdomain' );
}
 
 
add_filter( 'eddsw_filter_placeholder_string', 'custom_eddsw_placeholder_string' );
/**
* Easy Digital Downloads Search Widget: Custom Placeholder Text
*/
function custom_eddsw_placeholder_string() {
return __( 'Your custom placeholder text', 'your-theme-textdomain' );
}
 
 
add_filter( 'eddsw_filter_search_string', 'custom_eddsw_search_string' );
/**
* Easy Digital Downloads Search Widget: Custom Search Button Text
*/
function custom_eddsw_search_string() {
return __( 'Your custom search button text', 'your-theme-textdomain' );
}
theme_ifeature-lite.css
CSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
/* iFeature Lite: Easy Digital Downloads Search Widget
----------------------------------------------------------------------------------------------------*/
 
#eddsw-form-wrapper {
height: auto !important;
}
 
#eddsw-form-wrapper .searchform,
#eddsw-form-wrapper .searchform .s {
height: auto !important;
}
 
#eddsw-form-wrapper .searchform {
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
-webkit-box-shadow: 0 0 0 #222222 inset !important;
-moz-box-shadow: 0 0 0 #222222 inset !important;
box-shadow: 0 0 0 #222222 inset !important;
width: auto !important;
}
 
#eddsw-form-wrapper .searchform .s {
background: #f5f5f5;
padding: 3px;
max-width: 100% !important;
}
 
#eddsw-form-wrapper .searchform .searchsubmit {
display: inline-block;
}
 
#eddsw-form-wrapper .eddsw-label {
margin-bottom: -15px !important;
}

Note: The above codes work with plugin version 1.0 or higher!

Extended explanation can be found at the plugin's page "FAQ" section at the bottom:
http://wordpress.org/extend/plugins/edd-search-widget/faq/

Download "Easy Digital Downloads Search Widget" plugin at wordpress.org:
http://wordpress.org/extend/plugins/edd-search-widget/

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.