Notifications
Clear all

[Closed] How to have a different header depending on the language of the forum?

15 Posts
2 Users
0 Reactions
3,048 Views
ldj72
Posts: 95
Topic starter
(@ldj72)
Estimable Member
Joined: 2 years ago

Hi,

I am using the "Condition" feature in Elementor Pro to show a different header (Logo image with text inside) according if I am on the blog or the forum.

No issue with the blog. I can use the condition to set a french header for the french blog version and an English header for the English blog version. I use Elementor Pro and WPML with the attribute /?lang=en

For the Forum, I have 2 URLs: 

  1. French: https://xxx.com/community/ (Default Language)
  2. English: https://xxx.com/community_en/

In the WordPress admin panel in admin pages, I see only the default one, and I know I can't use WPML to translate it with the attribute: /?lang=en

So how can I set and different header if I am on the french and the English forum?

 

Thanks

 

14 Replies
ldj72
Posts: 95
Topic starter
(@ldj72)
Estimable Member
Joined: 2 years ago

Up the request. I need support.

The question is for Header and footer.

Thanks.

ldj72
Posts: 95
Topic starter
(@ldj72)
Estimable Member
Joined: 2 years ago

I add something.

Is it normal to have the same "page id " for 2 different forums?

I just noticed it.

Thanks

ldj72
Posts: 95
Topic starter
(@ldj72)
Estimable Member
Joined: 2 years ago

It's weird.

I created a new forum, "Forum test," and got the same "page id." Check on the screenshot.

 

Maybe, it explains why I don't have a page in WordPress for my forum in English?

 

How can I figure it out without breaking my forums and SEO?

 

Thanks

1 Reply
Tutrix
(@tutrix)
Joined: 5 years ago

Noble Member
Posts: 1493

@ldj72 

tests for community_en/

.wpf-boardid-7 .elementor-3018 .elementor-element .elementor-widget-container .wp-image-3025 {
  display: none;
}
.wpf-boardid-7 .elementor-3018 .elementor-element .elementor-widget-container a{
  background-image: url( https://wpforo.com/wp-content/uploads/2022/07/wpForo-logo-new-3-163x34.png );
  background-repeat: no-repeat;
  background-color: #000000;
  width: 447px;
  height: 40px
}

replace the url to the wpForo logo with your header for the english forum

ldj72
Posts: 95
Topic starter
(@ldj72)
Estimable Member
Joined: 2 years ago

Thanks, @Tutrix, your workaround works. 

But I am still confused. Is it normal to have the same page id? I tried to change the number, but I got a 404 error on my forum page in English.

Worst, I can't design the English page as I want. I inherit the parameters of the page in French. For example, I have my posts in French and not English on the sidebar.

 

Thank for the support

Page 1 / 3