Created
March 7, 2018 23:44
-
-
Save djrmom/280c7cfee24334e430a9b2dae0c9b97c to your computer and use it in GitHub Desktop.
facetwp add facetwp-template to downloads shortcode
This file contains hidden or 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 | |
| /** filters download shortcode to wrap text for 0 results in facetwp-template class | |
| ** text may need to be adjust to match site setting | |
| **/ | |
| add_filter( 'downloads_shortcode', function( $output, $atts ) { | |
| $output = str_replace( 'No Products found', '<div class="facetwp-template">No Products found</div>', $output ); | |
| return $output; | |
| }, 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment