-
AuthorPosts
-
April 30, 2020 at 12:42 pm #1208493
Dear support,
in a brand new installation of wordpress + enfold + WooCommerce for making some test, i’m experiencing some problems with the backend of enfold and editors.
in the enfold options, avia builder is enabled as the default editor, and it’s working.
If I add a new page or post, i can write using avia builder with no problem.
But if i click on disable avia builder (the button upside the editor) the classic editor is not showing.
This is not a problem for posts or pages, because I will use the avia builder.
The problem comes up into WooCommerce product add page, where for the description you must use the default editor, and it is no showing up.
Is a problem of mine or is a know problem?Thank you (I add you some screenshot)
May 4, 2020 at 1:05 am #1209367Hey Marco,
Sorry for the late reply, on my new install with Woocommerce the “Product short description” has a working editor:
Please include an admin login in the Private Content area so we can be of more assistance.Best regards,
MikeMay 4, 2020 at 11:55 am #1209491Hi Mike thank you for answering.
I was using some code in functions.php (child theme) that was breaking me the editor.
I removed everything and now it works.Just for knowledge purposes here are the two codes I had into functions.php
// add ALB into custom posts add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'fooditem'; /*instead add the name of the custom post type here*/ } } return $metabox; } // hide editor name on every post/article add_filter('display_post_states','remove_ALB_post_state',999,2); function remove_ALB_post_state( $post_states, $post ) { if("! has_blocks( $post->ID )") { unset($post_states['wp_editor']); } if("!= Avia_Builder()->get_alb_builder_status($post->ID)") { unset($post_states['avia_alb']); } return $post_states; }
May 4, 2020 at 1:12 pm #1209521Hi,
Glad to hear you found the error unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeMay 4, 2020 at 1:38 pm #1209534yes sure, i’m ok I thought it was something with the theme.
Thank youMay 4, 2020 at 2:02 pm #1209542Hi,
Very good, glad it is sorted out, I wouldn’t say it’s something with the theme, I’d say it was the functions above that you removed.
We will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Strange problem with editors and woocommerce’ is closed to new replies.