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

Add class="notranslate" to meta tag #139

Closed
bcoelhodev opened this issue Mar 15, 2019 · 3 comments
Closed

Add class="notranslate" to meta tag #139

bcoelhodev opened this issue Mar 15, 2019 · 3 comments

Comments

@bcoelhodev
Copy link

Hi,

I don't want the Google translate the meta tags, so i need add class="notranslate" attribute to the meta tags. It's possible?

Like this
<title class="notranslate">Page title</title>

@peterangelov
Copy link
Contributor

Fast (maybe little bit dirty) solution? If you don't want to modify this package (as not all who use it might want this feature) you could modify the output in the template.

{!! str_replace('<title>', '<title class="notranslate">', SEOMeta::generate()) !!}

@peterangelov
Copy link
Contributor

@vinicius73 hi, I have prepared fix for this but I don't know how to test it properly. If the addition of "notranslate" class is controlled by config value, I can not change it during unit test, as the config values are set when SEOMeta class is added to service container as singleton. Any idea?

@vinicius73
Copy link
Member

Closed by #178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants