Ever wanted or needed a simple floating call to action button for your website. You can see an example on this website your currently on, on the lower right hand corner.
Well, I’ll provide you with the code to do so, all you will need to do is add some CSS, HTML and a img to your website in order for this to work.
Call To Action Widget Code
First your going to need a place to store the files, i suggest creating a folder called /corner-widget/. Inside this folder create a index.php file aswell.
Go your your websites main .css file and add the following css somewhere
Once you have added the CSS open up the index.php or index.html file of your website. In the index file please add the following code somewhere within the opening and closing body tags.
Your going to need to edit the URL and possibly the Image if it does not align with your business or offer. Once you have edited everything just hit save and then visit the index page of your website. you will now notice your image and link floating in the lower right hand corner of your website.
Simple way to have a eye catching call to action on your website. I should add this code will display on desktop only and when the screen is made smaller than 768 the widget will disappear. this was done so mobile users don’t get annoyed by having this image blocking their navigation.