Notifications
Clear all

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

15 Posts
2 Users
0 Likes
2,512 Views
Posts: 93
Topic starter
(@ldj72)
Estimable Member
Joined: 1 year 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
Posts: 93
Topic starter
(@ldj72)
Estimable Member
Joined: 1 year ago

Up the request. I need support.

The question is for Header and footer.

Thanks.

Reply
Posts: 93
Topic starter
(@ldj72)
Estimable Member
Joined: 1 year ago

I add something.

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

I just noticed it.

Thanks

Reply
Posts: 93
Topic starter
(@ldj72)
Estimable Member
Joined: 1 year 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

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

Noble Member
Posts: 1119

@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

Reply
Posts: 93
Topic starter
(@ldj72)
Estimable Member
Joined: 1 year 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

Reply
Page 1 / 3