Created
June 2, 2012 10:03
-
-
Save deckerweb/2857613 to your computer and use it in GitHub Desktop.
Easy Digital Downloads Search Widget plugin v1.0+ -- filters and constants for customizing and branding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/