Support

Account

Home Forums Gutenberg Trouble with bloc position "high (after title)" Reply To: Trouble with bloc position "high (after title)"

  • I managed to do a quick, dirty and ugly fix for now.
    In advanced-custom-fields-pro\includes\forms\form-gutenberg.php starting from line 89
    switch out the acf.addAction segment for the following:

    acf.addAction('prepare', function(){
    	setTimeout(function(){
    		$('.editor-post-title').after( $('#acf_after_title-sortables').addClass('wp-block m-auto') );
    	}
    	, 1000);
    
    	$(document).on('click','.editor-post-publish-button', function(){
    		
    		if($('#poststuff .postbox-container #acf_after_title-sortables-copy').length){
    			$('#poststuff .postbox-container #acf_after_title-sortables-copy').html(
    
    				$('#acf_after_title-sortables').html()
    			);
    
    		}else{
    			$('#acf_after_title-sortables').clone().attr('id','acf_after_title-sortables-copy').hide().appendTo($('#poststuff .postbox-container'));
    		}
    
    	});
    
    }, 1);