Skip Navigation

[Resolved] Views plugin is breaking Elementor editor

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to use taxonomy view's shortcode in "Shortcode in Menus" plugin and other widget plugins?

Solution:

You need to avoid using post body shortcode [wpv-post-body] in both taxonomy view, for example:

https://toolset.com/forums/topic/views-plugin-is-breaking-elementor-editor/#post-2232091

Relevant Documentation:

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 10 replies, has 2 voices.

Last updated by jorgel-4 3 years ago.

Assisted by: Luo Yang.

Author
Posts
#2228225
working.jpg
not-working.jpg

When I try to edit a page with Elementor editor, I don't see the content of the page or post. I just see the elementor Widgets panel, Sections Nav, header and footer.

When I desactivate Views plugin it works again.

#2228529

Hello,

I have tried the credential you provide above, but can only see 403 error message:
Acceso restringido desde tu conexión

Please check these in your website:
1) deactivate all other plugins, and switch to WordPress default theme 2021, and test again
2) check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/
3) If the problem still persists, please a copy of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#2228955
#2229461

Thanks for the details, I am downloading the files, will update here if find anything

#2229489
sim.jpg

I can duplicate the problem with your duplicator package, it seems to be a compatibility issue with plugin "Shortcode in Menus", after deactivate it, it works fine, see my screenshot sim.JPG

Can you confirm it? thanks

#2229845

You're right, that was the problem.

Thanks a lot for your help!

Regards

#2229875

Sorry, I tryed with another plugin that, instead of shortcode, add a widget to the menu, but I get same problem.

I see the problem is when a view is added at the header without the Elementor Views Widget. But is the only way I can do it. I add a list of categories under "Tiendas" and "Gastronomía" made with Views.

So when you edit a page or post with elementor, the header and the footer are also loaded at the editor, and that brakes it.

Is there a way to not load that specifics views when the elementor editor is active on pages and posts, except when editing header? Something like: At "body.elementor-editor-active" only load submenu views when "body.elementor-editor-active.elementor-editor-header"

The views are:
[wpv-view name="categorias-submenu-tiendas"] AT submenu id="sm-16378489007290461-2"
[wpv-view name="categorias-submenu-gastronomia"] AT submenu id="sm-16378489007290461-4"

#2230485

For the new question:
Is there a way to not load that specifics views when the elementor editor is active on pages and posts, except when editing header?
There isn't such kind of built-in feature, if you need more assistance for it, please provide detail steps to reproduce the same problem.

What another plugin are you using? is it the same plugin "Shortcode in Menus"?
How and where do you put the view's shortcode into the header?

I need to duplicated the same problem and debug it in my localhost, thanks

#2230993

Hello Luo,

I send you here a new copy of the site with the latest changes hidden link

And I made a video explaning everything hidden link

Sorry for my english haha

#2232031

I am downloading the new files, will update here if find anything

#2232091

Thanks for the details, I can see the problem with your duplicator package files, in this case, you need to avoid using post body shortcode [wpv-post-body] in both taxonomy view, for example:
Edit both taxonomy views "CATEGORIAS SUBMENU GASTRONOMIA" and "CATEGORIAS SUBMENU TIENDAS"
hidden link
hidden link

in section "Loop Editor", you just need to replace [wpv-post-body ...] shortcode with term link shortcode:
[wpv-taxonomy-link]
Save both taxonomy views and test again, it works fine in my localhost with your duplicator package.

#2232385

My issue is resolved now. Thank you!