HTML Tip:ย Just came across a quick and easy code sniplet for members to use, to create custom button links that you can insert just about anywhere. And the great part about it is that there's only two lines of code. It would literally take more time explaining the code than it would be to just copy and paste it, so let give it a shot, and see if we can break it down.
The complete code:
<p> <a href="ย INSERT YOUR LINK URL HEREย " target="_blank" rel="noopener">
<input type="button" value="ย INSERT YOUR LABEL TEXT HEREย " /></a> </p>
As far as where the button appears, perhaps some random spot in the middle of a line of text, like we see in the example above, it's easy too. Copy both lines of code from here, then open up HTML modeย in the field you want the place your button in, click your cursor into the spot on the line where you want the button to appear, and then paste in the code. exactly like I have here. Then replace the bold text areas with your link URL, and the label text you want to appear on the button, and voila! Close HTML mode to preview it.The default style for the button appears to be a simple pale gray block with a black boarder, and black text.
The default setting ( target="_blank" ) means that it will make the link open in a new tab when clicked. If you want the link to open in the same window where you click it, then change target="_blank" part to target=""_self"ย
Hope this comes in handy!
Comments