The theme I'm using allows one, in its options, to enter some contact info to be put in the header. The demo content has an empty link like this: <a href="#">Random Shit</a>
.
What I'm trying to do is to put a mailto in it, such as:
<a href= "mailto:[email protected]">[email protected]</a>
but the theme adds double quotes around href's content corrupts it to something like this in the front-end:
<a href=""mailto:[email protected]"">[email protected]</a>
So when a user clicks it, they're redirected to example/currentpage/"mailto:[email protected]"
If you have stumbled upon a similar problem please share your experience, whether you found the solution or not.
The theme I'm using allows one, in its options, to enter some contact info to be put in the header. The demo content has an empty link like this: <a href="#">Random Shit</a>
.
What I'm trying to do is to put a mailto in it, such as:
<a href= "mailto:[email protected]">[email protected]</a>
but the theme adds double quotes around href's content corrupts it to something like this in the front-end:
<a href=""mailto:[email protected]"">[email protected]</a>
So when a user clicks it, they're redirected to example/currentpage/"mailto:[email protected]"
If you have stumbled upon a similar problem please share your experience, whether you found the solution or not.
Just after posting the question I tried to remove the quotes from the href in the theme options and it worked.
<a href=mailto:[email protected]>[email protected]</a>
Another solution I considered was to use .htaccess redirects in a way such it redirects to whaterver the theme decided to point to a mailto:
Redirect 301 /[path-to-wherever-metallex-points-to] mailto:[email protected]
-solution 2 source-
So if you find yourself in a similar situation, you have the choice between two solutions.