 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
September 24, 2014 at 5:29 am #324031Hy! Basically I would like to change the ‘Add to cart’ text to ‘Learn more’ in the portfolios. Thanks in advance. September 24, 2014 at 3:37 pm #324332Hi IkarusDev! Please install this plugin – https://wordpress.org/plugins/codestyling-localization/ 
 and rescan theme files and edit the strings as neededRegards, 
 YigitSeptember 24, 2014 at 6:23 pm #324489Add to cart is not registered as a string but show details is. Add this to function.php to change add to cart text: add_filter( ‘add_to_cart_text’, ‘woo_archive_custom_cart_button_text’ ); // < 2.1 
 add_filter( ‘woocommerce_product_add_to_cart_text’, ‘woo_archive_custom_cart_button_text’ ); // 2.1 +
 function woo_archive_custom_cart_button_text() {
 return __( ‘My Add To Cart New Text’, ‘woocommerce’ );
 }Source: http://docs.woothemes.com/document/change-add-to-cart-button-text/ - 
		This reply was modified 11 years, 1 month ago by ILikeMovies. 
 September 24, 2014 at 6:25 pm #324491Hi! Please do not forget to check ‘non-case sensitive’ – http://i.imgur.com/H3wFygj.png Best regards, 
 YigitSeptember 24, 2014 at 6:36 pm #324507Have you found the string with codestyling…? Have search and could not find it. Must use filter. September 24, 2014 at 7:39 pm #324570pasted the code above into functions.php and nothing was happening… I use WMPL translation plugin…won’t they conflict with eachother? September 24, 2014 at 8:01 pm #324586installed plugin can’t find english to rescan… 
 http://gyazo.com/449134a20c6a07148224a727b878d4fdSeptember 24, 2014 at 8:46 pm #324610one step further again but can’t find add to cart… even with non-case-sensitive checked September 25, 2014 at 8:51 pm #325256Hey! Please try to find the string in Tools > Localization > Plugins > WooCommerce. If that still does not work, please try the function as following add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); function woo_archive_custom_cart_button_text() { return __( 'My Add To Cart New Text', 'woocommerce' ); }Regards, 
 Yigit
- 
		This reply was modified 11 years, 1 month ago by 
- 
		AuthorPosts
- You must be logged in to reply to this topic.
