Weebly Tips, Tricks & Tutorials

Learn how to customize and modify your Weebly site with new effects, plugins, and widgets.

Welcome to My Weebly Tricks, a resource for Weebly site owners who want to go beyond the basics. Here you'll find step-by-step guides on adding image effects, slideshows, navigation scripts, text animations, countdown timers, and more — all tailored for the Weebly platform.

"I love inserting new widgets and effects on Weebly templates. I like helping people and I like them more being my subscriber." — Domz (Domingo Tambasacan)

Using custom CSS to change button styles in Weebly

Buttons are small design elements with a large effect on how a Weebly site feels. A clear colour, comfortable size and obvious hover state can guide visitors towards a booking form, product page, newsletter signup or contact request without making the page feel crowded.

Weebly’s built-in style controls are useful for basic changes, but custom CSS gives you more precise control. You can create a consistent button system, match your branding, improve mobile usability and apply different styles to different calls to action. The method is suitable for bloggers, local businesses, online shops and service providers across Australia.

Find the right Weebly button selector

Before writing CSS, identify which element you want to change. Weebly buttons commonly use classes such as .wsite-button, .wsite-button-inner or theme-specific selectors. The exact class can vary between templates, so checking the live page is more reliable than assuming a selector from another theme will work.

Open your published site in Chrome or another modern browser, right-click the button and choose “Inspect”. The developer tools will show the HTML and the classes attached to the button. Look for the outer link or button element, then check whether the visible text sits inside a nested span. This helps you decide whether your CSS should target the whole button, the label, or both.

A broad selector can affect every button on the website, which is useful when you want a unified design. A more specific selector is better when you want to change just one call to action. For example, a class such as .primary-cta can be added through the relevant Weebly element or section, allowing you to style a featured button without changing every link.

Add custom CSS in the Weebly editor

The location of custom CSS depends on the Weebly editor and theme you are using. In many sites, design settings include an option for custom CSS, while some users add styles through the page or site-wide header area. Site-wide CSS is generally the better choice for a consistent button system because it keeps the rules together and applies them throughout the website.

A basic button rule might look like this:

.wsite-button {
  background: #1769aa;
  border: 2px solid #1769aa;
  border-radius: 6px;
  color: #ffffff;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  text-decoration: none;
}

Replace .wsite-button with the selector found in your own theme. If the theme has a gradient, background image or more specific rule, your colour may not appear immediately. In that situation, inspect the existing CSS and use a more precise selector before resorting to !important. A carefully targeted rule is easier to maintain when the theme changes.

Control colour, typography and spacing

Button colour should relate to the site’s broader palette while standing apart from the background. A local electrician in Brisbane might use a strong navy button against a pale background, while a boutique in Melbourne may prefer a muted terracotta tone. The important point is contrast: visitors should be able to identify the action quickly.

You can adjust the main visual properties with CSS:

.wsite-button {
  background-color: #d95f39;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
  color: #ffffff;
  font-family: Arial, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 14px 28px;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

Padding controls the space around the label, while font-size and line-height influence how easy the text is to read. Avoid using very narrow buttons with long labels such as “Request a detailed quote”. On smaller screens, allow the text to wrap naturally or increase the button width. This matters for customers browsing on phones while commuting in Sydney or checking a service website during a busy workday.

Create hover, focus and active states

A button should respond when a visitor moves a mouse over it, taps it or reaches it with a keyboard. A hover state can use a darker shade, a subtle shadow or a small movement. Keep the effect restrained so the action remains professional and does not distract from the page content.

.wsite-button:hover {
  background-color: #b94725;
  color: #ffffff;
  transform: translateY(-2px);
}

.wsite-button:focus,
.wsite-button:focus-visible {
  outline: 3px solid #1b5e20;
  outline-offset: 3px;
}

.wsite-button:active {
  transform: translateY(0);
}

The focus rule is essential for keyboard users and should not be removed simply to create a cleaner appearance. A visible outline also supports visitors using accessibility tools. Hover effects do not work in the same way on touchscreens, so the default button must remain attractive and understandable without relying on animation.

If you want a calmer presentation, use a background colour change instead of movement. Avoid rapid transitions, flashing effects and large transformations, particularly on websites aimed at older customers or people who may be sensitive to motion.

Style primary and secondary calls to action

Most websites need a visual hierarchy. A primary button can invite a visitor to “Book a consultation” or “Shop now”, while a secondary button can point to a less urgent page such as “Learn more”. Giving both buttons the same visual weight can make the page harder to scan.

You can create separate classes for those roles:

.primary-cta {
  background: #1769aa;
  border: 2px solid #1769aa;
  color: #ffffff;
}

.primary-cta:hover {
  background: #0e4775;
  border-color: #0e4775;
}

.secondary-cta {
  background: transparent;
  border: 2px solid #1769aa;
  color: #1769aa;
}

.secondary-cta:hover {
  background: #eaf3fa;
  color: #0e4775;
}

Apply the relevant class only where it is needed. Depending on the Weebly editor, this may involve adding a class through an embed element, assigning a class to a section, or using a selector that identifies a particular page area. If you need more practical examples of selectors, layout adjustments and theme customisation, the Weebly styling guide can provide useful background.

For an Australian online shop, this hierarchy can separate “Add to cart” from “View sizing guide”. For a tradesperson serving Perth or Adelaide, it can make “Get a quote” prominent while keeping “Our services” as a quieter secondary option.

Make buttons responsive on mobile screens

A button that looks balanced on a desktop monitor can become cramped on a phone. Weebly websites often receive mobile traffic from visitors comparing prices, checking opening hours or contacting a business while away from a computer. Responsive CSS helps the button remain usable across screen sizes.

A media query can increase the width and touch area on smaller screens:

@media screen and (max-width: 600px) {
  .wsite-button {
    box-sizing: border-box;
    display: block;
    font-size: 16px;
    margin: 10px 0;
    min-height: 48px;
    padding: 14px 20px;
    width: 100%;
  }
}

A width of 100 percent works well for a single prominent action, but using it for every button can make a page feel repetitive. When several buttons appear together, consider placing them in a vertical stack with comfortable spacing. A minimum height of around 44 to 48 pixels creates a more forgiving tap target, especially for users navigating with one hand.

Test the result on both narrow and wide screens. Check landscape orientation, long button labels and pages where buttons sit beside images. Australian visitors may use a range of devices and connections, from newer phones in Melbourne apartments to older handsets on regional networks, so the layout should remain usable without depending on a particular screen size.

Improve contrast, accessibility and trust

Good button styling combines appearance with clarity. White text on a pale yellow background may match a brand palette but can be difficult to read. Use a contrast checker to assess the foreground and background colours, then inspect the button in its normal, hover and focus states. Colour should support the label rather than replace it; “Submit” or “Continue” should communicate the action even when the colour is removed.

Clear wording also builds trust. “Download the pricing guide” is more useful than “Click here”, while “Send enquiry” gives a visitor a realistic expectation about what happens next. If a button opens a PDF, starts a phone call or takes the user to an external payment service, make that purpose apparent in the label or nearby text.

Australian businesses should also review the wider page around their buttons. Consumer-facing prices generally need to be presented clearly, including whether GST is included where relevant under Australian Consumer Law. Forms should explain what information is collected and why, particularly when a button sends personal details to a business. These considerations do not come from CSS, but visual clarity can make important notices and next steps easier to find.

Keep animation optional for visitors who prefer reduced motion:

@media (prefers-reduced-motion: reduce) {
  .wsite-button {
    transition: none;
  }

  .wsite-button:hover {
    transform: none;
  }
}

This small rule improves comfort without removing the button’s basic styling. It also keeps the interface dependable for visitors using accessibility settings on their device.

Test and maintain your custom button CSS

Custom CSS can stop working after a theme update, a redesign or a change to Weebly’s generated markup. Keep a copy of your rules in a separate text file and add comments explaining which selector belongs to which button. This makes future troubleshooting faster and reduces the risk of deleting a rule that controls an important part of the site.

Test buttons on the homepage, landing pages, blog posts and contact pages. Check links, keyboard focus, hover behaviour, tap targets and loading appearance. Review them in Safari and Chrome, then test at least one iPhone-sized and one Android-sized viewport. A button should remain readable when the browser text size is increased and should not overlap nearby content.

Use the browser inspector to identify conflicts when a change has no effect. A theme rule with greater specificity may override your declaration, or the visible colour may belong to a nested span rather than the link itself. You can solve many conflicts by writing a more exact selector:

.page-section .wsite-button .wsite-button-inner {
  color: #ffffff;
}

Use !important sparingly, document it when necessary and avoid building a chain of overrides. A small, organised stylesheet is easier to edit than a collection of emergency fixes added over time.

Choose one strong primary style, add a restrained secondary option and check every state on real devices. Then publish the updated design and review the key pages as a visitor would, from the first click through to the form, booking or purchase action. Apply these custom CSS techniques in your Weebly editor to create buttons that look polished, work comfortably on Australian screens and make each important action easy to find.

A bold charcoal drawing of a clean, minimalist workspace with a notebook, pencil, and coffee cup on a light wooden desk, rendered in dark grey strokes against an off-white paper background, conveying a calm and focused creative mood.

Recent Posts

Get in Touch

Subscribe for regular email updates and get access to new Weebly tips and tutorials.