• 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

Creating different widths for primary sidebar and footer widgets

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 › Creating different widths for primary sidebar and footer widgets

This topic is: not resolved

Tagged: body classes, content-sidebar, full width content

  • This topic has 5 replies, 2 voices, and was last updated 9 years, 9 months ago by Angelique.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 22, 2016 at 7:08 am #191776
    Angelique
    Member

    I have the Modern Studio Pro theme.

    How do I separately target the primary sidebar and the footers? I need the primary sidebar (which will be on most of my pages) at 35%, but I need footers 1 - 3 (on my full-width front page) at 28%. Right now the width code has been set here:

    .footer-widgets-1,
    .footer-widgets-2,
    .footer-widgets-3,
    .sidebar {
    	width: 28%; 
    }

    I have Firebug; it cannot tell me what to do in this case.

    I've tried targeting the sidebar separately, including trying .sidebar-primary and .widget-area, but I obviously have the wrong class selectors.

    http://itsolutionsbycmit.com
    August 22, 2016 at 7:22 am #191777
    Brad Dalton
    Participant

    The full width layout generates the following class you can view in the source code

    .full-width-content

    And the content sidebar layout generates

    .content-sidebar

    Tutorials for StudioPress Themes.

    August 22, 2016 at 8:00 am #191778
    Angelique
    Member

    Brad --

    I'm afraid I still can't connect the dots, especially since I just realized that those footers aren't just showing up on my full-width page; they are also showing up at the bottom of ALL pages. (Fixing that is another problem.) In the meantime, I have tried many different ways of applying the selectors you suggested, and I still can't figure out how to change the primary sidebar to 35% while leaving the footer widgets at 28%.

    August 22, 2016 at 9:37 am #191787
    Brad Dalton
    Participant

    You need to modify the content width by the same amount you modify the sidebar width. I suggest you test this first using Firebug or Chrome inspector before modifying the CSS in your style sheet.

    http://www.studiopress.com/genesis/markup.php

    The footer widgets is a separate question.


    Tutorials for StudioPress Themes.

    August 22, 2016 at 10:26 am #191790
    Angelique
    Member

    Are you talking about the content width for the primary sidebar and footers (which are apparently also considered sidebars,) or the main .content selector for the two-column pages?

    My primary content and primary sidebar widths were already set perfectly before I decided to try this footer-widget nonsense. The original code was:

    .content {width: 48%; /* 446.40px *}
    
    .full-width-content .content {float: none; margin-left: auto; margin-right: auto; width: 100%;}
    
    .footer-widgets-1, .footer-widgets-2, .footer-widgets-3, .sidebar {width: 35%;}

    Then I decided, hey! Let use those footer widgets. They'll be useful! But changing the percentage of the footer widgets so that three fit across the page ALSO changes the width of the primary sidebar (obviously; in the code above, they are all grouped together.) However, i don't seem to be able to separate them. When I try to set JUST the footer widgets to 28% (and making a new .sidebar section set at 35%,) the widgets no longer arrange themselves in columns; they are stacked on top of each other.

    I don't mind making changes to my style sheet. The worst that can happen if you mess up is your site looks stupid for 5 seconds until you change it back. It's not like a .php mistake that can crash your site (which I have done many times to other sites!) And sometimes I need to leave the stupid stuff up so that you guys can see what's going wrong!

    August 24, 2016 at 4:43 pm #191990
    Angelique
    Member

    In case anyone else is having the same problem, I found the answer: You have to specify the width for each individual footer widget. In the block of code containing the .sidebar and the three footer widgets, I set the width to 35%. Then I individually styled .footer-widgets-1, .footer-widgets-2, and footer-widgets-3 with a width of 28%.

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