Cloud Library : problem with WPML

Posted in: Newspaper
Post count: 7

Hello, I just update Newspaper to the latest version and try to use only cloud library but no standard kit.

Main language: everything is working.
Other languages: here is the list of problems
– Newspaper does not display correct footer or header.
– Custom template with different footer or header display always template configured int theme panel
When adding a template translation with WPML, the template has to type (footer, header, category, ….)

I fix footer and header by patching the following file with in td-composer

legacy/common/wp_booster/td_global.php
726c726,728
< return (int) str_replace(‘tdb_template_’, ”, $template_id);

> $template_id = (int) str_replace(‘tdb_template_’, ”, $template_id);
> // fix for wpml
> return apply_filters( ‘wpml_object_id’, $template_id, ‘tdb_templates’, true );

And everything is working now.

Still get the problem with template type not setted. but i can do it via SQL.

Post count: 35449

Hi,

It will be easier to create 2 header/footer templates, so you can use for example different logos if needed, and different menus etc directly in the template. You can for example duplicate the template and customize it for each language – https://prnt.sc/p86qss

Thanks

Post count: 7

Yes , but it does not work like wpml content translation like post and page.

How would you set a global header for each language ? in the theme panel, I cannot do it.

With my solution, I can choose to translate any tdb_templates post type, and choose different menu or design for a language.

Post count: 35449
Post count: 7

Thank you for your reply, Ok as a workaround , but my patch (2 lines) is better

Post count: 7

How do you do for custom category template ?

Post count: 35449

Hi,

So if I understand correctly you are using category templates from tagDiv Cloud Library and you want to translate them, if yes, then you need to know that translating a category is like creating a new category template for each language in part.
Here is a similar topic -> https://forum.tagdiv.com/topic/block-1-recent-comments-widget-for-translation/

Hope this will help you!
Thank you!

Post count: 7

I have tried to change the language then the category template, but when saving I lost my configuration like header, footer ,search … templates

Post count: 35449

Hi,

If you are using cloud templates for header, footer ,search.. then you need to set all these per each language as the category template.

Let me know the results!
Thank you!

Post count: 7

I go to theme panel in french (main language) I set the header, footer ,search, 404, … and main category template, and custom category template.
Then i change to german (secondary language), I set again the header, footer, … custom category..

When I come back to the main language, all is set to “no template”. only custom category is rights.

Post count: 35449

Hi,

Please make a full backup and send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thanks

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.