• 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

Show woocommerce product page as full-width on mobile theme Foodie Pro

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 › Show woocommerce product page as full-width on mobile theme Foodie Pro

This topic is: resolved

Tagged: foodie pro, Mobile Theme, WooCommerce

  • This topic has 4 replies, 2 voices, and was last updated 6 years, 8 months ago by senordeer.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 27, 2016 at 12:02 pm #188400
    senordeer
    Member

    Hello, Foodie Pro works great with woocommerce, I am just having a problem with showing a single product page as full-width on mobile site. It's like the mobile theme reads the page as a content-sidebar page and the actual content only fills 50% of the mobile screen. This is only an issue on single product pages. I commented out sidebar bc I don't need it on any other page, it still only shows up as filling 50% of the screen. Sending screenshot below thanks in advance!

    screenshot

    http://erikabonnell.com/product/jeweled-candle/
    June 28, 2016 at 12:51 pm #188463
    rfmeier
    Member

    senordeer,

    The single product page is actually displaying a 'singlular' post type, so Genesis doesn't really treat it as a page layout. You can trick it with the snippet below in your theme's functions.php file.

    https://gist.github.com/fd958478a89849f85fafc3ee95f9f1a0.git


    Ryan Meier – Twitter

    June 28, 2016 at 1:43 pm #188468
    senordeer
    Member

    Hey Ryan - thanks so much. I added the snippet, and I still see it as only half a page (only on mobile though, totally fine on full-size devices). So I'm wondering if it's something in the mobile styling of Foodie Pro? I haven't touched the mobile CSS at all, but the snippet didn't seem to work for me unfortunately. Cleared cache, tried on 2 iphones.

    June 28, 2016 at 1:49 pm #188469
    rfmeier
    Member

    senordeer,

    There is a css rule for 767px

    @media only screen and (max-width: 767px) {
    
    	.five-sixths,
    	.four-sixths,
    	.one-fourth,
    	.one-half,
    	.one-sixth,
    	.one-third,
    	.three-fourths,
    	.three-sixths,
    	.two-fourths,
    	.two-sixths,
    	.two-thirds,
    	.first {
    		clear: none;
    		margin-left: 2.564102564102564%;
    		width: 48.717948717948715%;
    	}

    I added the following after line 2737 and it removed the margin. You can adjust left and right margins as needed.

    .full-width-content .five-sixths,
    .full-width-content .four-sixths,
    .full-width-content .one-fourth,
    .full-width-content .one-half,
    .full-width-content .one-sixth,
    .full-width-content .one-third,
    .full-width-content .three-fourths,
    .full-width-content .three-sixths,
    .full-width-content .two-fourths,
    .full-width-content .two-sixths,
    .full-width-content .two-thirds,
    .full-width-content .first {
        clear: none;
        margin-left: 0;
        padding-right: 0;
        width: 100%;
    }

    Ryan Meier – Twitter

    June 28, 2016 at 1:58 pm #188471
    senordeer
    Member

    Rock on. Perfection. You're the best, my friend. Following on Twitter, cheers!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Show woocommerce product page as full-width on mobile theme Foodie Pro’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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