-
AuthorPosts
-
March 26, 2019 at 4:50 am #1082963
Hey there,
is there an easy way to make the description on the single product page full-width with CSS without tampering with core Woo files?Thanks
March 28, 2019 at 10:33 am #1084019Hey Justin,
Can you try adding this php code in functions.php:
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 1 ); add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 12 );Best regards,
NikkoMarch 28, 2019 at 10:03 pm #1084303Close…thanks Nikko
But some odd stuff still happening here.March 29, 2019 at 11:14 am #1084524Hi Justin,
Please use only this code:
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 12 );then in wp-content > themes > enfold > config-woocommerce > config.php find (line 1141):
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 1 );just comment it out or remove.
Best regards,
NikkoApril 1, 2019 at 8:34 pm #1085690Nikko, do I add this file to my child theme? I was trying to avoid any customization with theme files.
The word ‘description’ (shown twice) is not needed at all. Neither is the border. The h2 tags are 16px :/
Do I simply rely on just styling the rest of it to get my desired results?Thanks
-
This reply was modified 6 years, 7 months ago by
Justin.
April 3, 2019 at 7:59 am #1086414Hi Justin,
Please try using this css:
#tab-description h2 { display: none; }Best regards,
VictoriaApril 10, 2019 at 1:09 am #1088934Thanks Victoria, did a few CSS updates.
But trying to now get rid of related products….but it’s not reflecting on the front end for me.April 11, 2019 at 5:17 am #1089386Hi Justin,
The link you posted redirects to the homepage, please check.
As for the issue, try to clear the cache (plugin and browser).
If that doesn’t help try to temporarily disable CSS file merging and compression in Enfold > Performance.Best regards,
NikkoApril 11, 2019 at 1:22 pm #1089540Thanks Nikko,
Added some further customization to the functions file and sorted it out.April 11, 2019 at 2:48 pm #1089569Hi Justin,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
This reply was modified 6 years, 7 months ago by
-
AuthorPosts
- The topic ‘Full-Width Description WooCommerce’ is closed to new replies.
