• 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

Archive page shifted after sidebar added

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 › Archive page shifted after sidebar added

This topic is: not resolved

Tagged: archive, formatting

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 7 months ago by Douglas Barnes.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 26, 2015 at 4:17 pm #163643
    Douglas Barnes
    Member

    Hi,

    For the sake of a learning management system, I recently changed my default layout to add a sidebar. I didn't want it in regular posts, so I wrote a single.php file for the child theme (Genesis Sample) to remove it.

    The problem is that the articles in the archive pages have shifted as though there is a sidebar there (which there isn't). I tried writing a page_archive.php for the child theme, but that didn't do anything.

    Any ideas how to get my archive back to center?

    (Might this be an artifact of the learning management system?)

    Archive: https://www.permaculturereflections.com/category/article/
    vs
    Single post: https://www.permaculturereflections.com/an-introduction-to-swales/

    https://www.permaculturereflections.com/category/article/
    August 26, 2015 at 6:08 pm #163670
    Victor Font
    Moderator

    The archive has a float:right for the content css at line 518 in style.css. Remove the float:right and add margin: 0 auto; to center the content.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    August 26, 2015 at 8:40 pm #163684
    Douglas Barnes
    Member

    That works for the archive, but it carries over into the courses section, bumping the course nav menu down below the main content.

    Something tells me that I might be able to pull it off with flexbox.

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