• 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

Button to only appear on mobile site not desktop site

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 › General Discussion › Button to only appear on mobile site not desktop site

This topic is: not resolved

Tagged: button, mobile

  • This topic has 3 replies, 3 voices, and was last updated 13 years, 5 months ago by cdils.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 27, 2013 at 7:26 am #31503
    jz9521
    Member

    I use the Executive theme on my site which comes with shortcode for a button. I want to create a button that appear on the mobile version (will dial my phone # when clicked) but not the desktop version.
    I want to use HTML code in the header right widget using only HTML and make the button so it is left justified.
    1) Is it possible to do this just using html? If so, do you know the code that I would insert?
    2)  If not, is the only way to do this using jQuery or CSS. If so, which is the best practice? If you know the code to do this, I would be grateful if you let me know it.
    Thanks so much!!!!

    March 28, 2013 at 8:50 am #31737
    cdils
    Participant

    Hi there,

    You can use CSS with the display:none; property to hide the button on regular screens, then in your media queries, set it to show.

    If you go ahead and add the button in on your site so I can see it, I can help you get the right CSS.

    Thanks,

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

    March 28, 2013 at 1:03 pm #31815
    Dream Ideation
    Member

    I added the CSS property to my site to hide the mobile button on regular screens. How do I get it to appear in a media query?

    Thanks!

    March 28, 2013 at 1:32 pm #31820
    cdils
    Participant

    Add display: inherit; to that element on whatever media query section (screen size) you want it to start showing on.

    I think that should do it. If not, here are other values for the display property you could try:

    http://www.w3schools.com/cssref/pr_class_display.asp

    Cheers,
    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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