pigsfoot Posted January 10, 2015 Share Posted January 10, 2015 Hi I have some code within an ecommerce shop that i'm using as follows <?php _e('No products found','woocommerce'); ?></p> Is it possible to replace the text 'No products found' with something that allows me to display some text, a hyperlink and also an image. I just want to format the message better. Many Thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/293817-php-_e/ Share on other sites More sharing options...
Ch0cu3r Posted January 10, 2015 Share Posted January 10, 2015 (edited) Moved to Third Party Scrips forum. _e is not a PHP function. It is a function defined by Wordpress for translating/outputting text. To format it you need to modify the HTML surrounding this block of code <?php _e('No products found','woocommerce'); ?> Edited January 10, 2015 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/293817-php-_e/#findComment-1502443 Share on other sites More sharing options...
jeffreyappel Posted March 4, 2015 Share Posted March 4, 2015 yes you can do this.Because the 'woocommerce ' is optional. Quote Link to comment https://forums.phpfreaks.com/topic/293817-php-_e/#findComment-1507442 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.