Footer Alignment outside of root
-
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:
Admin
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>
Admin
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.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
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?
Admin
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.
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.