Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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)

    #1209367

    Hey Marco,
    Sorry for the late reply, on my new install with Woocommerce the “Product short description” has a working editor:
    2020-05-03_185932.png
    Please include an admin login in the Private Content area so we can be of more assistance.

    Best regards,
    Mike

    #1209491

    Hi 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;
    }
    #1209521

    Hi,
    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,
    Mike

    #1209534

    yes sure, i’m ok I thought it was something with the theme.
    Thank you

    #1209542

    Hi,
    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Strange problem with editors and woocommerce’ is closed to new replies.