Skip to content

@deckerweb /edd-search-widget.php
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Easy Digital Downloads Search Widget plugin v1.0+ -- filters and constants for customizing and branding
<?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' );
}
/* 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;
}
@deckerweb
Owner

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.