ThemeFuse / Unyson

A WordPress framework that facilitates the development of WP themes
http://unyson.io
924 stars 218 forks source link

Unyson not working even with "Disable Gutenberg" plugin #3950

Open fuel4vision opened 4 years ago

fuel4vision commented 4 years ago

Hi, We are running - Wordpress - Version 5.4 | Unyson 2.7.23 | The Core 1.0.42

Now we cannot edit the pages as the Unyson page builder is not working even with the "Default editor" and "Disable Gutenberg" plugins. PLEASE HELP.

ANY help much appreciated.

KaktusJohn commented 4 years ago

Hi, I have the same problem with exacly the same versions of Wordpress and Unyson. What PHP version is on your server? I have 5.6.40 and I`m thinking if upgrading to newest one can help.

Please write here if you find out any solution.

fuel4vision commented 4 years ago

Awaiting sever to load the PHP extension then I will try. Will let you know.

fuel4vision commented 4 years ago

Updated PHP to 7.3 Unyson still not working!

KaktusJohn commented 4 years ago

I contacted the Brizy team. I received an answer from them, but I didn't have time to test it yet. I paste here: "but as an answer to your question, probably you now have Gutenberg editor in Wordpress, which ruins the page builder in Unyson. If you want to get back to what it used to be, you can install the Classic Editor from Wordpress".

I hope this solves our problems :)

fuel4vision commented 4 years ago

Hi many thanks for this, i have tried both and unfortuanatley they did not work. BUT I then fiddled with the Classic Editor, so if you load the plugin Classic Editor go to settings and click block editor and save it. Go to the page you are editing and the messy blocks come up.....scroll all the way down and at the bottom is the Unyson page builder??? below the blocks then you can edit the page. This is the only way I can see the Unyson editor for now. But I can edit the pages so hopfully any updates will fix this. All the best M.

yura-x commented 4 years ago

Hello @fuel4vision ! Please try to add following CSS code to your admin area

#editor.page-builder-visible .block-editor-block-list__layout,
#editor.page-builder-visible .block-editor-writing-flow__click-redirect {display:none;} 

You can put this code in some CSS file and enqueue it in admin_enqueue_scripts action https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/

Please note if this will help. Best regards!

fuel4vision commented 4 years ago

Thank you so much for this, which .php file do I add this to?

yura-x commented 4 years ago

@fuel4vision , you need to create your custom CSS file, put code from my previous message into it and then enqueue it in your admin area. Please see following blog post with instructions: https://davidwalsh.name/add-custom-css-wordpress-admin

iamjoshade commented 4 years ago

well I solved mine by disabling Gutenberg which I did like this
add_filter('use_block_editor_for_post', '__return_false', 10);

KaktusJohn commented 4 years ago

well I solved mine by disabling Gutenberg which I did like this add_filter('use_block_editor_for_post', '__return_false', 10);

@95mediawebsolutions Could you tell me where to add this line?

iamjoshade commented 4 years ago

@KaktusJohn I added that line in my functions.php

KaktusJohn commented 4 years ago

@KaktusJohn I added that line in my functions.php

@95mediawebsolutions Thank you so much! It works!!! :-D After checking:: The pages can be edited but the buttons still remain inactive. They do not refer to attached links. In your case, the links work?