Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTranslate #1

Open
johav opened this issue Jan 23, 2020 · 4 comments
Open

GTranslate #1

johav opened this issue Jan 23, 2020 · 4 comments
Assignees

Comments

@johav
Copy link
Member

johav commented Jan 23, 2020

Customer support suggests to fix the toggle (dropdown menu to choose language)

add the following code into the footer.php file, and Sergey // [email protected] (GTransalte support) me know once it's done.

<script>jQuery(document).ready(function() {var lang_html = jQuery(".switcher div.option a[onclick*='|"+jQuery('html').attr('lang')+"']").html();if(typeof lang_html != "undefined")jQuery('.switcher div.selected a').html(lang_html.replace("data-gt-lazy-", ""))});</script>
@johav johav transferred this issue from another repository Jan 31, 2020
@johav
Copy link
Member Author

johav commented Feb 6, 2020

@JustinyAhin - we are waiting in Sergey to reply to your questions, right?
Let's please document progress here.

@JustinyAhin
Copy link
Member

Yes, waiting for Sergey's response.

@johav
Copy link
Member Author

johav commented Feb 26, 2020

Sergey says:

Unfortunately I wasn't able to figure out why the switcher, if added as a menu element, can't be clicked on. It seems to be due to the menu itself, for some reason the menu element itself is not receiving the click, not just our selector. I've tried replacing it, with some JS code, to another element (namely a element), and it also was not receiving the click event. I've reverted back to the floating-widget only, not to leave a non-working selector on the website. I'll keep digging, maybe I'll be able to find out what is the reason for such a strange behavior, however if you can ask your developer to take a look at it as well, he might have a better understanding of your theme. Basically, what I need is just the for the switcher to receieive the click event, he can just have the switcher in the menu write something in the console instead of calling our functionality, that will already be enough for me to take over.

@johav johav transferred this issue from AfricArxiv/AfricArXiv-overview Feb 26, 2020
@petprog
Copy link

petprog commented Mar 1, 2020

Yes, waiting for Sergey's response.

@petprog petprog closed this as completed Mar 1, 2020
@petprog petprog reopened this Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants