href codes vanish from html buttons
-
I am editing my site starofyourbirth.com and I want to put clickable buttons on some pages. It runs wordpress 4.0 and a child theme of twentyeleven with just a few modifications. I edit using Firefox. Here is the html code I am using:
<button style="background-color: #e2a514;" onclick="location.href='http://store.starofyourbirth.com/p1061016394'" type="BUTTON"> Star of Your Birth Store for September 3<br /> </button>I put this in on the text tab of the editor and save/update.
If I switch back to the visual tab to do more work, and then come back to the text tab, theonclick="location.href='http://store.starofyourbirth.com/p1061016394'"is gone from the button code.I have another site, computerhelpsite.net, that is still on WordPress 3.8.4, also running a child theme of twentyeleven that would have very similar (and not many) modifications of the parent. I do not have the problem of vanishing code on this site.
I have tried disabling TinyMCE Advanced and that did not help. Nor did telling TinyMCE advanced to stop stripping p and br.
I also tried making a button with the form tag but the problem persisted.Thanks in advance for any help.
The topic ‘href codes vanish from html buttons’ is closed to new replies.