Home › Forums › WoodMart support forum › PRODUCTPAGE TABS EDIT 2 COLLUMNS
PRODUCTPAGE TABS EDIT 2 COLLUMNS
- This topic has 1 reply, 2 voices, and was last updated 4 years, 4 months ago by
Elise Noromit.
-
AuthorPosts
-
December 18, 2020 at 3:57 pm #252178
DSVParticipantDear support
I want to replace the tabs section by columns. simply 2 columns, side by side, at the right some basic extra info and at the left the product description, no slides, no hovers, no tabs.
I know how to disable the tabs, I know how to make use of html blocks and i know how to place these blocks on the ‘before footer’ section in the backend of the product page, but i don’t know how to place the product description in this block.
I have been playing around with function.php file but i just can’t seem to get it right, it’s like I’m nearly there.
for now, I created a shortcode for the ‘product description’ but when placing this short code in my columns it doesn’t seem to work as it should be, almost, but not good enough, its showing the product description, i can place it anywhere but for some reason my homepage and only the homepage and not the other pages are starting to act weird. (Homepage only available in some kind of tablet mode) see image, but that not the problem, Question is not how to restore this, i’m always backing up, I only want to know if it’s possible to do this without errors.
I dont want to be all technical about this goes i know your support only goes so far. but i’m not a big fan of plugins like woolentor or similar, so iam still hoping this is possible
Iam seeing the finishline, i know i’m nearly there, can you help me out?Created **shortcode, placed in function.php
add_shortcode( ‘product_description’, ‘display_product_description’ ); function display_product_description( $atts ){ $atts = shortcode_atts( array( ‘id’ => get_the_id(), ), $atts, ‘product_description’ ); global $product; if ( ! is_a( $product, ‘WC_Product’) ) $product = wc_get_product($atts[‘id’]); return $product->get_description(); }
**Shortcode [product_description]
Attachments:
You must be logged in to view attached files.December 18, 2020 at 5:38 pm #252209
Elise NoromitMemberHello,
You will need a plugin customizing the product page template. You can consider this one: https://xtemos.com/docs/woodmart/faq-guides/building-custom-woocommerce-sites-with-toolset/
Alternatively, you can disable all the tabs and show the content in the Extra content block.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register