Skip Navigation

[Resolved] View not loading correctly in mega menu

This support ticket is created 3 years 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 5 replies, has 2 voices.

Last updated by simoneM-6 2 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#2456367

Hi,
I'm using Kadence Elements to create a mega menu.
One mega menu element, called "Mega Shops" features a View that displays a CPT.
The issue: when first loading the page this view doesn't seem to be loading the container background images, which are dynamic, and only displays the text and container shadow (see screenshots for error and desired result). After opening other pages sometimes it goes back to normal.
Also, I've found that when this happens, if I open the mega menu element in the edit mode and simply click Update, and empty the cache, it works fine. But it's temporary.
Could you help me find out what the problem is so I can finally sort it out?
See error on the home page hidden link hovering over "Shops", or "Stores" depending what your location is. (It might be that you don't see the error now, cause I've done what described above).

#2456369
Schermata 2022-09-13 alle 14.53.23.png
Schermata 2022-09-13 alle 15.06.17.png

forgot the screenshots..

#2456841
menus.jpg

Hello,

I have tried the URL you mentioned above, but don't see the problem, see my screenshot menus.jpg.

In Toolset side, you can disable View's cache by adding cached="false" into View shortcode, for example:
[wpv-view name="My amazing custom post list" cached="off"]

More help:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-view
cached (opt):
off
Turns off the caching system for the View.

#2456935
Schermata 2022-09-14 alle 09.27.59.png

Thank you, Luo.
I'm using blocks, so I guess I can disable the Cache view option in the View block..? (screenshot)
Since the issue happens on first page load, disabling the cache might make it occur again, which is good so you can actually see it...can we keep this ticket open for more than a couple of days so I don't have to explain this all over again?
thank you

#2457727

OK, I have marked this thread as "Waiting for feedback" status, please update here if you still need assistance for it.

#2464979

The issue hasn't come up any more. Let's hope it stays like that. Thank you!