Footer Alignment outside of root

  • tommyz

    #276

    I am using wp-load.php to pull worpress functionality outside of wordpress. Everything works fine with the exception of the footer in graphene. Any ideas why this could be occurring? I setup the basic of pages to show what is occurring here:

    http://www.opshots.net/gallery2/blogtest2.php

    Admin

    Syahir Hakim

    #11880

    Your content is missing a closing </div> for the #avatar_footer div.

    <div id="avatar_footer">Avatars by <a href="http://www.sterling-adventures.co.uk/blog/">Sterling Adventures</a>

    OPShots

    #11881

    I deactivated that plugin and still have the same issue. I thought it was a closing tag somewhere but could not find one missing.

    Admin

    Syahir Hakim

    #11882

    I believe this has something to do with manually removing the call to get_sidebar() function that you asked on this other thread: https://forum.graphene-theme.com/topic/single-post

    In that case, just add a closing </div> to your child theme’s single.php file, just before the <?php get_footer(); ?> line.

    OPShots

    #11883

    I appreciate your assistance with this. I actually have not implemented removing the call to get the sidebar in single.php yet. I tested it and put it back in for now. Just for testing I went in and added a closing </div> and the footer is still not aligned.

    Admin

    Syahir Hakim

    #11884

    Hurm..I think the reason is because the post content is directly under the #content-main div. There are supposed to be a whole lot of other divs inside (like .post div, etc), which altogether make out the layout of the page.

    And since this is actually loaded outside of wordpress using wp-load.php, I’m not sure which template file is actually being used to render the page. It may not be the single.php template file, hence editing that file brings no effect to the website.

    Try asking around in wordpress.org support forum?

    OPShots

    #11885

    No help there I am afraid. What is weird is when I put the get_sidebar() hook in there it lines up fine. Does that tell me it is something in sidebar.php?

    Admin

    Syahir Hakim

    #11886

    In the file where you put the get_sidebar() hook above, try putting </div> closing tag one by one until it lines up. It probably just need one or two of the closing div tags.

    OPShots

    #11887

    Bingo!! Success!! Thank you!

Viewing 9 posts - 1 through 9 (of 9 total)

  • You must be logged in to reply to this topic.