• 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

Mobile responsiveness – remove entry border

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 › Mobile responsiveness – remove entry border

This topic is: not resolved

Tagged: media query

  • This topic has 1 reply, 2 voices, and was last updated 12 years ago by jbergen.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 8, 2014 at 2:37 am #123308
    mbsvendsen
    Member

    Hi!

    I am using the Genesis Sample Child Theme. I have set the entry border to the following in style.css:

    .entry {
    border: 1px solid #cccccc;
    }

    http://www.treningsokt.no/?page_id=138

    However I would like to remove the border when the site is viewed on mobile phones (but keep it on an ipad). I know it is supposed to be done in the media queries, I just cannot seem to get it to work by trial and error.

    If anyone could help out I would be most thankful!

    http://www.treningsokt.no/?page_id=138
    September 8, 2014 at 7:04 am #123349
    jbergen
    Member

    Hi,

    I would add .entry {border: none !important;} to your media query for max-width 800px. That media query is found in style.css, line 1441. I've copied below what the media query will look like after adding the rule to remove the border. Note that I had to add !important to the rule because the code you added for the border was at the end of style.css, and that would have overridden this rule.

    @media only screen and (max-width: 800px) {
    
    	body {
    		background-color: #fff;
    		font-size: 16px;
    	}
    
    	.site-inner,
    	.wrap {
    		padding-left: 5%;
    		padding-right: 5%;
    	}
    
    	.archive-description,
    	.author-box,
    	.comment-respond,
    	.entry,
    	.entry-comments,
    	.entry-pings,
    	.sidebar .widget,
    	.site-header {
    		padding: 0;
    	}
    
    	.archive-pagination li a {
    		margin-bottom: 4px;
    	}
    
    	.five-sixths,
    	.four-sixths,
    	.one-fourth,
    	.one-half,
    	.one-sixth,
    	.one-third,
    	.three-fourths,
    	.three-sixths,
    	.two-fourths,
    	.two-sixths,
    	.two-thirds {
    		margin: 0;
    		width: 100%;
    	}
    
    	.sidebar .widget.enews-widget {
    		padding: 40px;
    	}
    	
    	.entry {
    		border: none !important;
    	}
    
    }

    I hope that helps!
    Jamie


    Jamie @ Ladebug Studios

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