Saltar navegación

[Cerrado] Translatepress breaks view layout

This support ticket is created 2 years, 2 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Zona horaria del colaborador: Europe/London (GMT+01:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Nigel 2 years, 1 month ago.

Asistido por: Nigel.

Autor
Mensajes
#2688811

I am using the Translatepress plugin to translate the website into different languages. The website also uses Toolset for custom fields, custom post types and views.

I am having an issue with the views when a page is translated. Here is the page in English, displaying correctly:
enlace oculto
However, the views break when the page is translated, and show in just one column:
enlace oculto

I know that a possible solution will be to switch to using WPML - but I wanted to check before I do that if there's anything you know that could get this working with Translatepress.

Many thanks for your help.

#2688866

Nigel
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+01:00)

Hi Glyn

I visited both of your links and I'm struggling to see a difference (aside from the language of the text), the layout looks the same.

Perhaps you could share some screenshots to direct us to what we should be looking at.

#2689789

Thanks for the response. If you take a look at the pages now, you'll be able to see the layout difference with the view of people. Thanks, Glyn

#2689809

Nigel
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+01:00)

I can see a JS error in the browser console on the French page which relates to the loading of Toolset styles on the page, which appears to account for why the grid layout is broken.

I don't know enough about TranslatePress, though, to identify why the translated page triggers the error.

I'm not sure if it will resolve the problem, but you could add the following to your wp-config.php file:

  define( 'TB_SCRIPT_STYLE_LAZY_LOAD', false );

Then revisit the French page to see if it helps.

El debate ‘[Cerrado] Translatepress breaks view layout’ está cerrado y no admite más respuestas.