Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Yaman

    (@yaman)

    That solved the issue but never knew what has caused the issue since i was using custom child there was no custom js added from my side.

    Thread Starter Yaman

    (@yaman)

    After inspecting the visual page editor div i found the div with id “fw-options-box-page-builder-box” has a class with “closed” and removing that displayed the element section. So, i hooked a script in admin_head to remove the class on page load and button clicked. The script is hooked for post type ‘page’. Below is the code for my fix.

    // fix for the visual page editor not showing on the pages
    function grand_child_admin_head(){
    	global $post;
    
    	if( 'page' != $post->post_type )
    		return;
    	?>
    	<script type="text/javascript">
    	jQuery( function($){
    		$("#fw-options-box-page-builder-box").removeClass( 'closed' );
    		$( '#wp-content-media-buttons > a').click( function(){
    			$("#fw-options-box-page-builder-box").removeClass( 'closed' );
    		});
    
    	});
    	</script>
    	<?php
    }
    
    add_action( 'admin_head', 'grand_child_admin_head' );
    Thread Starter Yaman

    (@yaman)

    Thanks. But as i said it was working fine but all of sudden it showed the issue. All i did is created a custom post type and assigned unyson page builder to that post type also. Not sure if that caused the issue so i tried to remove the code and check but still it is causing issue.

    I tried to remove Yoast seo plugin, wordfence security but couldn’t solve the issue. No plugin was updated.

    Also i am using Grand theme ( http://bit.ly/1NAVOAD ) that comes up with the Unyson and Page Builder as extension.

Viewing 3 replies - 1 through 3 (of 3 total)