One of the common objects used in website design is the humble button. Typically the primary function of a button is to trigger an action of some sort. This ‘trigger’ could be a hyperlink to another page, a place somewhere else on your current page or to an external website. Buttons can also used to initiate downloads, payment processes, send emails and so on.
Some of EverWeb’s widgets use buttons e.g. the Contact Form, Contact Form Advanced and also the PayPal widget which also let’s you create your own buttons if you don’t want to use the default ones PayPal offers.
Creating Your Own Button
If you want to create buttons for your own website, you can easily and quickly do in EverWeb. There are a few simple steps required as outlined below. In our example we will be recreating a button from the Modern Theme Template which is a new Theme Template coming in EverWeb version 2.6. If you download and install the Modern Theme Template, EverWeb will ask you if you want to install the ‘Work Sans’ font during the installation process. You can also install the Work Sans font directly via the Google Fonts website.
Let’s create a button in EverWeb…
Create and Style Text in a TextBox
- First create a TextBox by clicking on the Textbox button in the Toolbar. Replace the default text with “Show me more”.
- Make sure that the text you have just added is highlighted, then click on the Fonts button in the Toolbar.
- Change the default text font (Arial) to ‘Work Sans’ from the Fonts Panel.
- Change the font weight to Extra Bold.
- The font size should also be changed from the default 12 to 18 point.
- The font color should be changed black to white and again this can be done directly in the Fonts Panel.
- Once finished, close the Fonts Panel and resize the shape so all of the text appears on one line.
- Now the text will need to be centered within the text box so with the text highlighted go to the Text Inspector.
- Change the Horizontal alignment from left aligned to Center alignment.
- Changethe Vertical alignment to middle from top.
- You will notice that the text is still not in the centre of the box as After Paragraph is set to 15 by default. Change this setting to zero.
- The text should be centered but if it is not check to make sure that the Inset Margin setting is zero.
- The text is now centered.
Creating and Styling the Button
Now that the text we want has been created, styled and centered within the TextBox, the next stage is to create the button to go around the text.
- Next go to the Shape Options and change the Shape from default to rounded rectangle. This creates the shape of the button.
- Set the fill type to Gradient fill as this is the type of fill used on the original button.
- Change the colors to match those in the example. The top color swatch should be ‘Tomato’ color and the bottom color swatch should be ‘Tangerine’. This will give you an approximate color match with the original button.
- Next add a line border using the Stroke options. Create a white coloured border with a 3px width.
- Adjust the button size until you have the look you want.
- Use the blue dot in the rounded rectangle shape to alter the roundness of the button’s cornersas required or use the shape’s widget settings.
Adding an Animation To The Button
When using the Home page of the Modern Theme Template, you will see that the button, and the headline text, has been animated. To animate the button:
- Select the button.
- Go to the Shape Options button in the Inspector Window.
- Tick the checkbox to the right of the text ‘Animations’ to activate the settings.
- Set the animation type to Fade from Bottom.
- Set the duration of the animation to 1.0 second.
- Set the animation delay to 0.2 seconds.
Hyperlinking the Button
The last step in setting up our button is to add a hyperlink to the scroll down the page. The Home page of the Modern Theme Template includes a scroll position line (in blue) which the button can be hyperlinked to. When pressing the button, the page will scroll down to the scroll position line. Scroll Posiotn is available in EverWeb version 2.6. If you are using an earlier version of EverWeb, you could replace the instructions below with e.g. hyperlinking to a different page in your website.
- If you want to insert your own scroll position line, click on the Scroll Position button in the Toolbar or use the Insert-> Scroll Position menu option. Drag and drop the turquoise line to where you want it on the page. You may also want to name the Scroll Position using the Widget Settings.
- Next, click on the button text, then go to the Hyperlinks Inspector.
- Tick to ‘Enable the Hyperlink’.
- Set the ‘Link To’ option as the page that you are currently on.
- Set the ‘Position’ field to the Scroll Position you want, wither the one that is already on the page, or to the one that you have created.
- If you are using a version of EverWeb prior to version 2.6, replace steps 4 and 5 as follows: Set ‘Link To’ as the page you want to hyperlink. The Position
You have now finished setting up your button! Preview to test that your button looks and works as you expect before publishing to the Internet. Creating buttons in EverWeb is easier and you can add your own flair and style in your own design. You can even animate your button to bring extra attention to it!
If you have a question about this blog post, please let us know in the Comments Section. We’re always happy to help!
EverWeb on Social Media
You can also find EverWeb on the following social media platforms:
Twitter handle @ragesw