• 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

Centric Pro home-widgets-1 padding-bottom?

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 › Centric Pro home-widgets-1 padding-bottom?

This topic is: resolved

Tagged: centric pro, css, home-widgets-1, padding bottom

  • This topic has 3 replies, 2 voices, and was last updated 8 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 25, 2015 at 12:08 pm #166670
    Ted
    Participant

    I've modified a version of Centric Pro for my photography site and I've got a carousel slider in the home-widgets-1 area. Below the slider I'm seeing about a 30 or 40px black line. I've gone through everything I can see in the stylesheet and can't find anything that would be causing it. Also looked through the css of the slider plugin, but nothing there.

    Obviously it's something, I'm just not finding it. Anyone know what might be causing this?

    http://tavphotography.com

    Thank you!

    Ted

    http://tavphotography.com
    September 25, 2015 at 1:56 pm #166675
    Tom
    Participant

    Hi Ted,

    I see a 12 pixel band/variance below the slider image bottom that appears to be a result of the slider javascript. The images are 650px high, but they sit in a container 662 px high (663 in Firefox). At first look, I think you can tweak this with some CSS like this snippet, but then you'd have to repeat for each media query.,

    .electriccarousel-viewer,
    .electriccarousel-anchor {
    	max-height: 650px !important;
    }

    A better approach would be to find out why the JS, set to 650px image gives a 662px container.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    September 25, 2015 at 2:06 pm #166676
    Ted
    Participant

    Hey Tom,

    Man, thank so much! I plugged the css in and it took care of it. I'm not completely a fan of the carousel slider I'm using there, but it sort of works until I can find a better one.

    Thanks again!

    Ted

    September 27, 2015 at 12:26 am #166747
    Tom
    Participant

    You're welcome, Ted.

    This fixes the media queries and uses the widths tested in the plugin JS:

    @media only screen and (max-width: 1200px) {
    
    	.electriccarousel-viewer,
    	.electriccarousel-anchor {
    		max-height: 500px !important;
    	}
    	
    }
    
    @media only screen and (max-width: 992px) {
    
    	.electriccarousel-viewer,
    	.electriccarousel-anchor {
    		max-height: 400px !important;
    	}
    	
    }
    
    @media only screen and (max-width: 768px) {
    
    	.electriccarousel-viewer,
    	.electriccarousel-anchor {
    		max-height: 300px !important;
    	}
    	
    }

    I was also curious about the black bar that appears at different widths above the slider, and found that you can make it disappear with this (see line 1661):

    .home-widgets-1 .widget {
        margin-top: 156px;
        max-width: 100%;
    }
    
    @media only screen and (max-width: 808px) {
    
    	.home-widgets-1 .widget {
    	    margin-top: 135px;
    	}	
    }

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Centric Pro home-widgets-1 padding-bottom?’ 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