Sidebar not showing up and Overlapping footer issue
-
I am having a little trouble with this website I am updating. For some reason, I cannot get the side-bar to show up on the blog page.
http://eight84.com/reviews-tutorials-2/
It does, however, show up on a single post page, but it is pushed below the post instead of aligned to the right.
I also disabled the CSS on the blog page and I could see the sidebar at the bottom. I am not sure what it is that is making the sidebar not show up and also be pushed down on the single post page.
(I did try disabling plugins and I still did not see the sidebar)
Another issue I am having is that the buttons on the bottom “Portfolio” “Contact me” overlap the footer in mobile view. I have also tried adding a clear both div, as well as adding clear both in the CSS to try to avoid this but I cannot seem to figure it out. I checked to make sure the position wasn’t “absolute” and I also tried making the buttons have a relative position, but it did not solve the issue. Any help is very much appreciated.
-
I have fixed the single-post page issue. However I am still not able to see the sidebar on the blog page without disabling the CSS.
there is no reference to a sidebar in the html output of the blog page;
does index.php (or home.php if exists) call the ‘
get_sidebar()
‘ code?reviews-tutorials.php calls for the sidebar. Which is the same way I did it for single.php.
This is the reviews-tutorials.php
<?php /* Template Name: Reviews * * This is your custom page template. You can create as many of these as you need. * Simply name is "page-whatever.php" and in add the "Template Name" title at the * top, the same way it is here. * * When you create your page, you can just select the template and viola, you have * a custom page template to call your very own. Your mother would be so proud. * * For more info: http://codex.wordpress.org/Page_Templates */ ?> <?php get_header(); ?> <div id="content"> <div id="inner-content" class="wrap cf"> <div id="main" class="m-all t-2of3 d-5of7 cf" role="main"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting"> <header class="article-header"> <h1 class="page-title"><?php the_title(); ?></h1> <p class="byline vcard"> <?php printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?> </p> </header> <footer class="article-footer"> <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?> </footer> <section class="entry-content cf" itemprop="articleBody"> <?php // the content (pretty self explanatory huh) the_content(); /* * Link Pages is used in case you have posts that are set to break into * multiple pages. You can remove this if you don't plan on doing that. * * Also, breaking content up into multiple pages is a horrible experience, * so don't do it. While there are SOME edge cases where this is useful, it's * mostly used for people to get more ad views. It's up to you but if you want * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much) * * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles * */ wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', ) ); ?> </section> <?php comments_template(); ?> </article> <?php endwhile; else : ?> <article id="post-not-found" class="hentry cf"> <header class="article-header"> <h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1> </header> <section class="entry-content"> <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p> </section> <footer class="article-footer"> <p><?php _e( 'This is the error message in the page-custom.php template.', 'bonestheme' ); ?></p> </footer> </article> <?php endif; ?> </div> <?php get_sidebar(sidebar1); ?> </div> </div> <?php get_footer(); ?>
Actually, I just realised that the page wasn’t assigned to use reviews-tutorials. Thanks for your help on this, wish I didn’t overlook it!
- The topic ‘Sidebar not showing up and Overlapping footer issue’ is closed to new replies.