Skip Navigation

[Closed] Translatepress breaks view layout

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 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 9 months ago.

Assisted by: Nigel.

Author
Posts
#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:
hidden link
However, the views break when the page is translated, and show in just one column:
hidden link

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
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00: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
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00: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.

The topic ‘[Closed] Translatepress breaks view layout’ is closed to new replies.