Dear 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.