By Geoff ashton on Tuesday, 07 February 2017
Posted in Technical Issues
Likes 0
Views 281
Votes 0
Hi.

I'm trying to add some code using the 'code' block but all I'm getting is the actual code appearing in the post.

It's from Leadpages and is supposed to insert a button which when clicked produces a pop-up box.

Here's the code:

<script src="//static.leadpages.net/leadboxes/current/embed.js" async defer></script> <button data-leadbox-popup="143368d73f72a2:17a8162deb46dc" style="background: #32C88C;border-color: #32C88C;border-radius: 20px;color: #FFFFFF;display: inline-block;vertical-align: middle;padding: 16px 32px;min-width: 192px;border: 1px solid #32C88C;font-size: 1rem;font-family: Helvetica, Arial, sans-serif;text-align: center;outline: 0;line-height: 1;cursor: pointer;-webkit-transition: background 0.3s, color 0.3s, border 0.3s;transition: background 0.3s, color 0.3s, border 0.3s; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.6);">Download this post as a PDF now--></button>

Any ideas why it won't work?

Many thanks.

Geoff
You should use HTML block instead of code block, code block is just populate what you put inside the code.
·
Wednesday, 08 February 2017 11:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah right - of course!

Many thanks - it's working now!

Geoff
·
Wednesday, 08 February 2017 17:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Wednesday, 08 February 2017 18:06
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post