WordPress.org

Ready to get started?Download WordPress

Forums

Expound
[resolved] Move Sidebar Under "Main" Post (9 posts)

  1. JoeMD
    Member
    Posted 10 months ago #

    Hey folks,

    I'm wondering if it's possible to move the side bar up so that it appears under the "main" featured post (the big image) while still having three smaller featured posts?

    Thanks in advance for any help.

    http://soniccollectors.com/

  2. Konstantin Kovshenin
    Member
    Theme Author

    Posted 10 months ago #

    Hey there! I don't think you can do that with just CSS. Firstly you'll need to change the amount of featured posts from 5 to 4 and resize the secondary featured posts block to fit the sidebar. You can probably change the amount with Jetpack's Featured Content module. Other than that it's all about CSS. A margin-top of around -570px on #secondary should do the trick. Also make sure you don't break the responsive layout when the sidebar goes beneath the main content, you might have to add some additional media-query rules. Hope that helps!

  3. JoeMD
    Member
    Posted 10 months ago #

    Ok, so I've been able to move the sidebar up and fix the number of featured posts, however I can't figure out how to re-zise the secondary content field. I tried the following but had no luck.

    body {
    
    	line-height: 1;
    background-position: center bottom!important;
    
    }

    Do I have to change something in the style sheet? I'm using a child theme so what would I add/do?

    Thanks in advance.

  4. JoeMD
    Member
    Posted 10 months ago #

    I've tried a few other things but can't figure out how to change the size of the secondary content. Any suggestions?

  5. JoeMD
    Member
    Posted 10 months ago #

    Well, I figured it out. I kind of cheated by simply reducing the featured post count to 4, moving the sidebar up and changing the background to white. Didn't have to worry about changing the side of the actual secondary featured posts area because the sidebar is "on top" of it. ^_^

  6. kallekn
    Member
    Posted 10 months ago #

    I was thinking about doing this myself in order to make the sidebar content more visible, but finally decided against it - the full width secondary featured post area seems fundamental to the design. Still, maybe you could post the code, you never know. :-)

    But the change seems to affect your single posts too, which probably wasn't intended?

  7. JoeMD
    Member
    Posted 10 months ago #

    Yes, it does, only just noticed that. So I'm going to have to change it back. You're right, Kallekn, the full-width does seem too important. Would be nice to have the option to make the sidebar more viable though.

    @Konstantin, would it be possible to allow for the sidebar to be more viable as described in a future upgrade to the theme?

  8. Konstantin Kovshenin
    Member
    Theme Author

    Posted 10 months ago #

    Joe, not really, the theme hasn't got any options and it doesn't really make sense to change the default behavior. You can always set the featured posts count to 1 and have no secondary block, pushing the sidebar and the main content area higher.

  9. JoeMD
    Member
    Posted 10 months ago #

    No worries. Just thought I'd ask. Theme is really cool as it is.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.