Problem with making an HTML+Javascript button

  • Hello!

    I’d like to preface this by saying I know next to nothing about coding ; everything I have here was obtained by following tutorials so please be gentle.
    I’m trying to create a button on my website which generate a random title from a set list. The html file works just fine in my browser and even in the preview section of my wordpress page. But when I try to publish the page, I get a block of text in place of the button.

    What can I do? It’s very likely my code is wrong, but I’m surprised/confused as to how it could be working in the preview and not when published… Could it be a problem with the theme?

    The blog I need help with is: (visible only to logged in users)

  • Hi there, I see you’ve posted something similar at https://en.forums.wordpress.com/topic/problem-with-making-an-htmljavascript-button-2/ so I’ll go ahead and close this thread so we can keep all support in one place.

  • The topic ‘Problem with making an HTML+Javascript button’ is closed to new replies.