-
Notifications
You must be signed in to change notification settings - Fork 12
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
buttonText1 doesnt work #10
Comments
You have the wrong syntax in the options object. You must separate each key:value pair with a comma instead of a semi-colon. Change it to this and it will work:
|
I changed but still doesnt work, i am using this in wordpress. |
Are you getting any kind of error in the console? What does your mailto link look like? Did you add the |
this is my link
The window opens and i can customize the CSS but the data-options doesnt work |
@salime45 I wonder if WP or a WP plug in is the cause of this. The data-options attribute has worked in every environment I tested in. I'll have to look further into it. |
I have this configuration, but i dont see any changes
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mailtoui-min.js" data-options='{ "buttonText2": "Outlook";"buttonText1": "Gmail" }' defer></script>The text was updated successfully, but these errors were encountered: