Hey, I’m working on simple music store right now, and I want for products to have only audio preview, name and Add to card button on the product catalog, something like on this site https://www.ghost-nation.com/ I found on the web simple code snippet to remove the links to single product pages, but that’s doesn’t work for me, while for others it’s just works fine. Is that because I’m using other WP theme than original ones?
The code that I found is
remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 );
Hi, thanks for reaching out. Which theme are you using?
Andrew I’m using the Corp Free theme.
Thanks. Corp is already working with those functions to create its unique store layout. Here is how you could do the same:
Page: Advanced Customizations
You can find a Corp child theme here Page: Child Theme.
Here is how you can migrate Customizer settings from a parent to a child theme Post: Migrating Parent to Child Theme Customizer Settings.
Oh, that works perfectly as I wanted. Thank you very much Andrew for quick help and links :)
Super, glad to hear that helped :)