This topic has 5 replies, 3 voices, and was last updated 1 years, 10 months ago ago by Farcela
Hi there,
I’ve added a custom taxonomy in functions.php and I’m trying to find the right hook to display the taxonomy at the desired place. I’ve tried the following hooks but without success:
etheme_woocommerce_template_single_add_to_cart:
https://prnt.sc/hAtqTW2PgQ1_
woocommerce_single_variation:
https://prnt.sc/ti01v8IAhJ3b
woocommerce_before_add_to_cart_quantity:
https://prnt.sc/TktVfkBPTu19
The custom taxonomy text is shown in red rectangle and the desired place = where the blue arrow is pointing at (between woocommerce-variation-availability and woocommerce-variation-add-to-cart variations_button woocommerce-variation-add-to-cart-enabled).
Regards
Hello,
We changed hook to the next one -> ‘woocommerce_before_add_to_cart_button’ https://prnt.sc/xmNVYIGVVm9t
We changed your custom CSS -> https://prnt.sc/wWSlKwFi3B-F
Results: https://prnt.sc/UQry00-w1r_2 , https://prnt.sc/IuGLj_nR1gJg
Is that ok for you or do you need to place it somewhere else ?
Regards
Hello,
Yes thanks that’s the right place!
The only thing is that on smaller devices the taxonomy text appears in the middle instead of at the left side (it seems to happen only to pages with simple products, @variable product pages it appears at the right place).
Page with issue:
https://prnt.sc/4zGA_y7bDOt6
Page without issue:
https://prnt.sc/C6J83MF86-Vw
By adding “width: 100%;” line to the custom CSS code it seems to solve the issue, but I’m not sure if that’s the correct line of code to add.
Can you confirm this?
Regards
Hello, @Farcela,
Yes, please try with this code, please copy and paste the below given CSS code to XStore >> Theme Settings >> Theme Custom CSS >> Global CSS and check back to your site after removing the browser cache.
.single-product-builder .et_product-block form.cart .taxonomy_levertijd.langer-dan-7-werkdagen {
width: 100% !important;
}
Regards 8Themes Team.
Thank you!
Everything works fine now. +
Regards
The issue related to '‘Single product builder hooks for custom taxonomy’' has been successfully resolved, and the topic is now closed for further responses