ResolvedPosition of product description
- This topic has 4 replies, 2 voices, and was last updated 3 years, 6 months ago by
Althemist.
- AuthorPosts
- May 14, 2020 at 11:52 pm #22953
guacha
ParticipantHi!
is it possible to move the product description to the lateral, like in the image?
Thanks
Gustavo
May 15, 2020 at 8:56 pm #22959guacha
ParticipantI was doing some research and I will try to answer my own question:
I can change the tabs place by changing the priority of the hook woocommerce_output_product_data_tabs.
Sorry, it was just plain Woocommerce coding.
Thanks
May 15, 2020 at 10:47 pm #22960guacha
ParticipantI can’t get the woocommerce hooks to work in the theme. The following code does nothing in the product page:
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10); add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 35 );
I tested this code, but is not working: (in my child theme functions.php)
function guacha_print_hello() { echo "<h1>HELLO</h1>"; } add_action( 'woocommerce_single_product_summary', 'guacha_print_hello', 30 );
This code doesn’t work either:
add_action( 'after_setup_theme', 'guacha_add_action', 70); function guacha_add_action() { add_action( 'woocommerce_single_product_summary', 'guacha_print_hello', 70 ); }
Is this a theme issue?
Thanks
May 15, 2020 at 11:25 pm #22962guacha
ParticipantSorry, my child theme was not loading correctly.
Resolved.May 16, 2020 at 12:23 pm #22979Althemist
KeymasterHello guacha,
Sorry for the late reply. It looks like we somehow missed your posts.
I am glad you manged to find a solution. Should you need help with something else, just let us know.
Regards,
Dimitar - AuthorPosts
You must be logged in and have valid license to reply to this topic.