Hey there,
You could edit the template within your child theme and change the order for your #primary div so it is above the #secondary one.
Or you might be able to tackle this with JS.
Is editing in the child theme an option π
Take care.
Thread Starter
Anne
(@mellissaa)
thanks! I checked my child theme and primary is always above secondary. I tried editing the .php files, in single post i moved the ‘get sidebar’ part to after the other stuff, but then that screwed up the single posts on the computer and iPad. any other ideas?
Hey there,
Looks like you’re all fixed up when I just took a look, I see your articles are on top. π
Take care.
Thread Starter
Anne
(@mellissaa)
Really? when i look at single posts on my iPhone the sidebar still shows up above the post content
*EDIT Scratch that.
I think that was me. Just looking again π
Can you share the code in your single.php use:
http://pastebin.com
Cheers.
Thread Starter
Anne
(@mellissaa)
Thanks! But that is on the home page in the indexed format. I’m talking about when you click on that, to read the full post. On the post page itself, the sidebar moves up above the post content.
I’d updated my post yesterday almost immediately after my response.
I requested a copy of your single.php to see the code structure. On the front of your site primary is listed first, on the single blog page it’s below secondary.
Cheers.
Thread Starter
Anne
(@mellissaa)
Okay my apologies! Thanks. here is my single.php
if i move the get_sidebar part below the other stuff, then it works out (the side bar moves below the post content) However, it then screws up the sidebar on the other pages (on a laptop and in the indexed view i can’t get it to stay up beside the primary
Thread Starter
Anne
(@mellissaa)
Hey there.
For it to flow naturally with primary first on a single page then you’d definitely need that below:
<!-- #primary -->
Unless you did something via JS:
http://stackoverflow.com/questions/7628627/change-order-divs-with-jquery
You mentioned when you do it the way I suggested that it pushes the sidebar down so they’re not beside each other, this is most likely some padding, margin or width. It would be easier if I could see it happening to be able browse through developer tools. π
Looking at the default theme on the main blog page it sets the primary margin on the right to -26.4% and then the secondary has a margin right of 7.6% along with a width of 18.8% (totals 26.4%). You’d need to maybe do something similar to that.
Take care.