• 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 responsive button?

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 responsive button?

This topic is: not resolved

Tagged: button, responsive, widget

  • This topic has 4 replies, 3 voices, and was last updated 11 years, 3 months ago by decarn.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 25, 2015 at 3:52 am #160390
    decarn
    Member

    Hi,

    I am using the Magazine Pro theme and followed the instructions to create a button and put it as a widget in my primary sidebar.

    My CSS code

    /* START: Add Color Button CSS to Your Style Sheet - http://www.studiopress.com/design/colored-content-boxes-buttons.htm */
    .button-1 {
        color: #ffffff;
    	text-decoration: none;
    	padding: 10px 85px;
    	float: none;
    }
    
    .button-1 {
        background-color: #E8554E;
        border: 1px solid #E8554E;
    }
     
    .button-1:hover {
        color: #ffffff;
    	background-color: #222222;
        border: 1px solid #222222;
    }
    /* END: Add Color Button CSS to Your Style Sheet */

    And the code in my widget:

    <a class="button-1" href="http://thefinance.sg/compare-credit-cards/">COMPARE CREDIT CARDS</a>

    The button is working but I am not able to make it responsive. Any idea how I can make it responsive? You can see the button ("COMPARE CREDIT CARDS") on the primary sidebar of my website.

    Thanks for your help.

    http://thefinance.sg/
    July 25, 2015 at 4:24 am #160397
    Victor Font
    Moderator

    You need to add the appropriate css to the media query sections of your style.css.


    Regards,

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

    July 25, 2015 at 6:26 am #160404
    decarn
    Member

    Thanks Victor.

    Seems like it is not going to be easy. Do u have any samples that I can refer to or are there any examples in the current magazine-pro stylesheet?

    July 25, 2015 at 8:06 am #160420
    emasai
    Participant

    You could modify it by using a percentage in the padding instead of the 85px left and right. Otherwise you need to write a new rule in the media queries. Just copy the button-1 code and change the left/right padding. You can delete the elements that do not change.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    July 28, 2015 at 12:35 am #160689
    decarn
    Member

    Hi Emasia,

    Thanks. I have dropped you a mail via your contact page to engage your services on this. Hope to hear from you soon.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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