• The FUNCTIONS.PHP file has a code problem at this point, reported by my old but useful editor (see the code )

    Every time I have to put in some code … I find it completely busted.
    THIS ONLY HAPPENS WITH YOUR THEME … why?

    _____________________________________________________________
    THIS ORIGINAL CODE = PROBLEM = INSTABILITY

    <?php }
    add_action(‘admin_notices’, ‘sydney_toolbox_fa_update_admin_notice’);

    }

    _____________________________________________________________
    SO THE FILE BECOMES STABLE AND DOES NOT CANCEL YOUR INTERNAL PHP CODES AND EVEN MY ADDITIONAL CODE CUSTOMIZATIONS

    <?php }
    add_action(‘admin_notices’, ‘sydney_toolbox_fa_update_admin_notice’);

    }

    /* MY CODE */
    function example_theme_support() {remove_theme_support( ‘widgets-block-editor’ );} add_action( ‘after_setup_theme’, ‘example_theme_support’ );
    /* MY CODE */
    add_filter(‘use_block_editor_for_post’, ‘__return_false’);

    /* MY ADDITIONAL END = SOLVE THE INSTABILITY OF THIS FILE FUNCTIONS OF THEME */
    ?>

    ____________________________________________________________________________
    Have solutiions ? Thanks very much.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @ultrasuoni,

    Sorry to hear the trouble you are experiencing. I am going to report this to our development team for further checking.

    My guess you are attempting to disable block editor and use classic editor instead on a particular post type.

    Meanwhile, you may try using an additional disable Gutenberg editor plugin.

    Thread Starter ultrasuoni

    (@ultrasuoni)

    Well then, I await an answer on the code and why closing PHP .. everything is OK but with the vs. original code .. no (with block note windows , notepad ++ and macromedia dreamwear).
    As you have seen, there is no need to exclude the new editor: a line of code is enough.
    I look forward, and thanks again

    Ciao dall’Italia.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File functions.php DIFETTOSO’ is closed to new replies.