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.. 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 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'); ?> 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. Link to comment https://forums.phpfreaks.com/topic/293817-php-_e/#findComment-1507442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.