Hello,
using wpForo 3.1.2 with TranslatePress, I want to achieve to have Header and Footer in the language selected. The Forum is translated with your .po-Files. The content should remain in English, until gVectors AI translates it.
This is what I did so far in TranslatePress:
Exclude from dynamic translation
#wpforo
.wpf-thread-list
.wpforo-post-head
.wpf-topic-more-info
Exclude selectors from translation
#wpforo
.wpf-thread-list
.wpforo-post-head
.wpf-topic-more-info
I also set the language for the whole shortcode block in Elementor to English. Maybe this is not necessary? But it doesn't help with the AJAX-parts.
The result is, that Header and Footer are translated by TranslatePress, wpForo is translated by itself (I guess), but the parts with AJAX-loading are still translated with TranslatePress.
Please let me know, which AJAX-Elements wpForo is using (full list, because maybe I miss something, like private messages?).
Please let me know, what kind of selectors I have to use to exclude the parts from translation.
Could you please provide the URL?
Hello @sofy !
Thank you for your reply. I solved it today just by using #wpforo. Thanks.
I use the wpForo Blog Cross Posting add-on together with TranslatePress.
The topic-menu excerpt above a WordPress post is rendered as follows:
<span class="wpf-link wpf-tmi-item-body-excerpt"
data-postid="113"
data-no-translation="">
...
</span>
Although data-no-translation is present directly on the element, its content is already translated on translated-language pages. TranslatePress exclusion selectors for #wpforo, #wpforo-dialog, #wpforo-dialog-body, and .wpf-tmi-item-body-excerpt therefore have no effect.
It appears that the Blog Cross Posting add-on retrieves the WordPress post content or excerpt after TranslatePress has already filtered it.
Is there a wpForo/Blog Cross Posting filter or template hook that allows me to replace the topic-menu/modal excerpt with the unfiltered original WordPress post content? In particular, I need a hook for the content rendered in .wpf-tmi-item-body-excerpt and #wpforo-dialog-body.