• 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

Genesis Connect For WooCommerce Shop Page Styling Error

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 › Genesis Connect For WooCommerce Shop Page Styling Error

This topic is: not resolved

Tagged: Genesis Connect for WooCommerce, Shop Page

  • This topic has 1 reply, 2 voices, and was last updated 9 years ago by Tony @ AlphaBlossom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 25, 2014 at 1:10 am #106650
    buddy_boy8403
    Member

    I'm using:

    WordPress Version 3.9.1
    Genesis Version 2.0.2
    Enterprise Pro Child Theme Version 2.0.0
    Genesis Connect For WooCommerce Version 0.9.7

    Website's shop page is: http://dj2nite.com/shop/

    The styling is off on this page only, and it appears that Genesis Connect is missing the styling for the:

    main#main-content.content

    The product pages appear to be styled correctly with borders, background color and padding:

    http://dj2nite.com/product/pyle-padh182-1400-w-dual-18-8-way-stage-speaker-cabinet/

    How can I get the shop page styling to look like the product page styling?

    http://dj2nite.com/shop/
    May 29, 2014 at 1:08 pm #107341
    Tony @ AlphaBlossom
    Member

    I haven't really used the Genesis Connect plugin, so
    not sure if this will work...as always, make sure you back your site up before making changes.

    The problem is not with the main#main-content.content, but the single product page is wrapped in an .entry div. The shop page doesn't have that, so you don't get that border inside.

    Try adding this to your theme's functions.php file:

    
    // Add wrap to WooCommerce Shop/Category Archive pages to style consistently with Single Product Page
    function abte_genesis_shop_page_wrapper_open() {
        
        echo '<div class="shop-page-wrap">';
        
    }
    
    function abte_genesis_shop_page_wrapper_close() {
        
        echo '</div><!-- end .shop-page-wrap -->';
        
    }
    
    add_action('get_header','abte_genesis_add_shop_page_wrapper');
    function abte_genesis_add_shop_page_wrapper() {
    
        if ( is_shop() || is_product_category() ) { 
    
            add_action( 'genesis_before_loop', 'abte_genesis_shop_page_wrapper_open', 10 );
            add_action( 'genesis_after_loop', 'abte_genesis_shop_page_wrapper_close', 10 );
    
        }  
    
    }
     

    Then on your theme's style.css file, add .shop-page-wrap to your .entry rule:

    
    .entry,
    .shop-page-wrap {
        background-color: #FFFFFF;
        border: 1px solid #ECECEC;
        box-shadow: 0 1px #ECECEC;
        margin-bottom: 4rem;
        padding: 4rem;
    }
    

    Again, not sure if this works with Genesis Connect, but I tested on my site without Genesis Connect and works great.


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

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

© 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