Saltar navegación

[Resuelto] WP Expand block not working in a View

This support ticket is created 3 years, 8 months 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 8 respuestas, tiene 2 mensajes.

Última actualización por Mariam 3 years, 8 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2463241

The Expand Block functionality for the "show more" text inside of the post body is not expanding inside of a View.
[wpv-post-body view_template="None"]

The expand is working inside the post here: enlace oculto
but not inside the View on this page: enlace oculto (Example in first post only)

It seems that the click function is not firing inside the View for some reason. Is there a setting or workaround for this? Thanks.

#2463435

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I checked the problem URL you shared and I see that it's the expand block is not working with the problem URL. I checked the browser console and I do not see any Javascript/jQuery errors.

Its hard to say anything before reviewing your current setup. Can you please share admin access details and let me see whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2463787

Hi Minesh,

Since this is on a university server, I will not be able to grant you access easily. I was hoping that you can give me some Toolset configurations to try in order to troubleshoot the issue myself. Thanks.

#2463827

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Here is the sandbox site, you can auto-login to it using the following link:
- enlace oculto

You should try to replicate the issue with this site and share with me the problem URL and I'm happy to look at it and see if I can offer you any other workaround.

#2463913

Thank you so much for that Minesh! Yes I was able to replicate the issue. Please note that I did install the Ultimate Blocks plugin for the "Expand" block.

Here is the post where the show more link is working: enlace oculto

and here is the page with the View where it's not working: enlace oculto

#2465801

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I checked and I confirm that the expand block is not working when its added to views. I see that when you try to display the expand block using the [wpv-post-body] shortcode, the page where you added the view it missing the css and js that should be added by the ultimate blocks.

The 'Ultimate Blocks' plugin is not officially integrated with Toolset. Here you can find the list of block plugins and its associated blocks which are integrated with Toolset:
- https://toolset.com/documentation/dynamic-sources-in-popular-blocks/

I suggest either you should go with those blocks plugin that is integrated with Toolset or you should contact the "Ultimate Blocks" plugin author and encourage them to contact us to talk about cooperation to make "Ultimate Blocks" compatible with Toolset.

#2466041

Thanks, can you please tell me if any of the Toolset compatible blocks have the expand/collapse text feature, with the exception of the accordion block?

#2466055

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

With the list I already shared before:
- https://toolset.com/documentation/dynamic-sources-in-popular-blocks/

I do not see any other block like expand/collapse other than accordion.

Maybe you should try to use jQuery. For example, please check the following reference:
- https://stackoverflow.com/questions/10310717/toggle-show-hide-on-click-with-jquery
- enlace oculto
- enlace oculto

#2466073

My issue is resolved now. Thank you!