More Editing Now Reading Code

With the theme I am using, the sidebar got stuck below the content. Now the sidebar is aligned along the top with the content. I also had to add code to let it know there was a sidebar to the right. The Library page looks much better now I think. If it wasn’t for the theme I used, it probably wouldn’t need edited…

Edited to clear why things were done.

About Brian A. Thomas

I am the father of Ari and Sidd. I am the owner and administrator of this site.
PHP, Programming, Site News, WordPress , , ,

2 responses to More Editing Now Reading Code


  1. Alex Reid

    Don’t suppose you’d mind sharing the way you managed this? I’m experiencing the same problem, and my WordPress-fu is not strong.

  2. I emailed Alex here with what I think was the solution at the time. Since this post I upgraded Now Reading and I changed themes I can’t be 100% sure myself. (Actually, it isn’t working now 100% properly, but I think that is a Canvas issue, not a Now Reading issue.)
    However, to help those who may be coming here for help as well, this is what I think I did. First thing to do is upgrade to 4.3 (4.3.1 is the newest version I see, so if you haven’t upgraded to 4.3, skip to 4.3.1). This might fix the problem on it’s own.
    One will need to edit library.php, single.php and for version 4.3 (and possibly sooner, I am not sure when he added an author page) author.php.
    When I made this post, I had a sidebar on both sides. I had to let it know there was a sidebar to the right, in that case I think it right-sidebar (so I had a <?php get_right-sidebar() ?> right before the <?php get_footer() ?>. This put the right-sidebar on the right, but doesn’t fix the content being below the page. I think, and as I said, I don’t remember exactly, but I am fairly sure that I moved <?php get_sidebar() ?> above <div class="content">, just below <?php get_header() ?>, that way the sidebar on the left is still fully functional. If you only have a sidebar on the left, you should be able to just move the get_sidebar up out of the content section.
    If all you want to do is move the sidebar from the right to the left on newer versions, just move <?php get_sidebar() ?> above <div class="content">, just below <?php get_header() ?>.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>