Digital experiences for all disciplines
Forum Replies Created
-
-
Hi Mohammad
It didn’t seem to work out. They referred me to the support of my specific theme 😀
I followed this guide: http://www.engagewp.com/remove-categories-woocommerce-product-category-widget/
And yeah, it’s several product categories in the Widget Menu that I want to remove, because they pretty much only serve as a landingpage for organic users and not really customer friendly for people browsing our site.
Thanks for the effort !
I will try that, and post the answer here if i get one 🙂
Best regards,
KristofferThis reply has been marked as private.This reply has been marked as private.hey,
Thanks, but it dosen’t work :/
/Kristoffer
Hey Laranz.
Thanks for the code 🙂
I have deleted all the other code and only used your code, and it works :D!Is the other code important ?
Best regards,
KristofferHey.
Now the text work fine on single products, but the button still adds product to the cart.
And is it possible to make the solution in the child folder ?
Best regards,
Kristofferhey 🙂
sorry for the late replay..I need “read more” on all products 🙂 not only on the single products but also on variable products.
The code you gave me changes the text on the single products but it doesn’t create the link to the product. it still adds the product to the cart.
Best regards,
KristofferThis reply has been marked as private.I’m really sorry to says this, but it dosen’t work…
here is a link for the site..
/Kristoffer
hey guys 🙂
I have applied the codes and it still dosen’t work :/
add_filter( ‘add_to_cart_url’, ‘woo_more_info_link’ );
function woo_more_info_link( $link ) {
global $product; // switches link in all cases, i.e. in plugins
$link = get_permalink( $product->id );
return $link;
}/* replace add to cart text on button */
add_filter(‘add_to_cart_text’, ‘woo_custom_cart_button_text’);
function woo_custom_cart_button_text() {
return __(‘Read more’, ‘woocommerce’);
}add_filter( ‘woocommerce_product_add_to_cart_text’ , ‘custom_woocommerce_product_add_to_cart_text’ );
/**
* custom_woocommerce_template_loop_add_to_cart
*/
function custom_woocommerce_product_add_to_cart_text() {
global $product;
$product_type = $product->product_type;
switch ( $product_type ) {
case ‘variable’:
return __( ‘Select options’, ‘woocommerce’ );
break;
default:
return __( ‘Read more’, ‘woocommerce’ );
}
}The single product text is chanced √
The rest ain’t working…best regards,
KristofferI know it’s much to ask, but can you make one that does the same to the “Choose variation” ?
Best regards,
KristofferHey 🙂
You sir, are amazing!
Thanks!There is just one problem, the text is changed but it still adds products to the cart, instead of going to the single product page..
/Kristoffer
exactly 😀 !
/Kristoffer
Or i didn’t get it solved, i just make a workaround 🙂 🙂
-
Posted in: Reply To: Remove Prettyphoto