Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Empty Description tab on products using the Swift Page Builder
New Landing › How can we help? › Atelier › Empty Description tab on products using the Swift Page Builder
- This topic has 9 replies, 3 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Atelier
-
October 8, 2015 at 11:35 pm #219580
When a product is setup using the Swift Page Builder an empty Description tab is visible on the page. I’ve done before/after tests to verify this. I realize you are storing the page builder’s config in the Description field (if I’m not mistaken), but I think the tab should still be hidden after you’ve retrieved the config. I don’t want to hide the Description field globally using CSS unless there’s no alternative.
The site is not public yet, so you will need to login here first:
https://www.terrysmithstudios.com/wp-admin/Thanks,
TerryOctober 9, 2015 at 5:51 am #219598Hi,
Please dont use page builder to display the text at desciption tab. Switch to default mode editor and insert the text in editor. I have attached screenshot to understand better.
Thanks
MohammadOctober 9, 2015 at 3:28 pm #219709You obviously do not understand my question. Also, if you are using the page builder then you can not enter text in the description field to begin with so your answer does not make any sense.
Terry
October 10, 2015 at 9:27 pm #219851This seems to be a bug to me. Please respond. My site is about to go live, so I may have to hide the tab altogether for now but this is certainly not what I want to do going forward.
Thank you,
TerryOctober 12, 2015 at 7:03 am #219919Hi,
My colleague will assist you shortly.
Thanks
MohammadOctober 13, 2015 at 8:02 pm #220604Hi,
Just checked and when using the Swift Page builder on the Product page and not filling the Short description meta field will cause that the description tab will be empty.
There are some woocommerce functions that allows to manage the tabs, removing this way the desired tab, avoiding that any Tab description html it’s rendered.
I added the following code to your child theme. Let us if this solution is viable for your project.
//Remove description tab add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['description'] ); // Remove the description tab return $tabs; }
This is how it looks.
https://www.dropbox.com/s/2koa3bhudbbgs1z/Screenshot%202015-10-13%2020.01.16.png?dl=0-Rui
October 13, 2015 at 8:09 pm #220607Thank you Rui for looking into this.
Hiding the description tab is not an option for me because I have other products where it needs to be displayed. Can a fix for this bug be added to the next update? Is it possible to reorder the tabs until then so that at least the empty tab is the 2nd one?
Thank you,
TerryOctober 13, 2015 at 8:23 pm #220610I change the previous code to this one.
//Remove description tab add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { $tabs['description']['priority'] = 50; //$tabs['description']['title'] = __( 'More Information' ); return $tabs; }
If you also want to change the name of the description tab just uncomment the line inside the function and place the desired text.
About the issue itself will forward to Ed.
-Rui
October 13, 2015 at 8:31 pm #220612Thank you Rui and thanks for forwarding this Ed.
After looking at a product where I have a Description (several paragraphs), I think a better word-around for now is going to be to hide the Description tab altogether and use the page builder to drop in a text area. I should have thought of that to begin with, but I do hope you guys can fix this soon.
Thank you,
TerryOctober 13, 2015 at 8:34 pm #220613ok. In that case use my initial code to remove the tab.
Will check with Ed.-Rui
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.