• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to create a button over a link?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to create a button over a link?

This topic is: not resolved
  • This topic has 5 replies, 3 voices, and was last updated 9 years, 10 months ago by stroutman81.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 30, 2016 at 6:23 am #182511
    stroutman81
    Member

    How do you transform a general link into a button? I have a jump link on my page that takes you to a section further down below. I'd like to "pretty it up" by making it a blue button, but have no clue where to start.

    Any help would be greatly appreciated.

    Thanks

    http://dev.body-improvements.com/online-fitness-coaching/
    March 30, 2016 at 6:55 am #182514
    Victor Font
    Moderator

    It's all done with CSS. Create a class and assign it to the link. This is the code I use on my site.

    
    a.button {
    	border: 3px solid #fff;
    	color: #fff !important;
    	background-color: orange;
    	background: transparent;
    	clear: both;
    	font-family: Montserrat, sans-serif;
    	font-size: 18px;
    	font-weight: 400;
    	letter-spacing: 1px;
    	margin-top: 20px;
    	padding: 15px 25px;
    	text-transform: uppercase;
    	cursor: pointer;
    	transition: all 0.1s ease-in-out;
    	text-decoration: none;
    }

    Then, if you want the color to change when a person hovers over it:

    a.button:hover {
    	background-color: #fff;
    	color: #000 !important;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 30, 2016 at 8:39 am #182524
    stroutman81
    Member

    Thanks for the information. Would you believe that I've gotten as far as I have so far with this site without knowing a thing about CSS? Do I copy and paste that code in appearance -> custom css?

    April 1, 2016 at 6:26 am #182640
    Brad Dalton
    Participant

    You can add

    class="button"

    to the HTML link


    Tutorials for StudioPress Themes.

    April 1, 2016 at 8:00 am #182654
    Brad Dalton
    Participant

    Like this https://gist.github.com/braddalton/6404bf0fa21a23fcfcb62a9acff3e335


    Tutorials for StudioPress Themes.

    April 2, 2016 at 4:16 am #182720
    stroutman81
    Member

    Worked perfectly! Thanks so much.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble