Osclass Support Forums

Osclass theme support => Epsilon Osclass Theme => Topic started by: lbsib on March 22, 2023, 08:22:12 PM

Title: Language changes when clicking on profile picture in header (non-logged in user)
Post by: lbsib on March 22, 2023, 08:22:12 PM
Hello,
when I'm on mobile and click on the profile picture in the header it changes the language of the site even if I have set it to another one.
The profile picture in the header on mobile links to user / dashboard
In desktop mode this links to user / login.

It must have to do something with this part of the header,php code line 40 (I can't post the code here it says that links are not allowed)

How can I fix it that non logged in users are able to do the sign up in their preferred language and not in english Or how can I change the code so it also links to user / login for mobile non-logged in users as well?
Title: Re: Language changes when clicking on profile picture in header (non-logged in user)
Post by: lbsib on March 22, 2023, 09:22:06 PM
Fixed it, there was a ! missing in line 40

instead of
(osc_is_web_user_logged_in().....
it has to say
(!osc_is_web_user_logged_in().....
Title: Re: Language changes when clicking on profile picture in header (non-logged in user)
Post by: MB Themes on March 31, 2023, 03:31:18 PM
Noce, thanks for feedback ;)