Grow your CSS skills. Land your dream job.

Blog Sidebar Disappeared

  • # February 11, 2013 at 3:25 pm

    Hello,

    The sidebar on my blog pages (and only the blog pages) seem to not be appearing anymore after some minor CSS edits. Any ideas or suggestions to have them re-appear? It seems just the widgets are not appearing on the right hand side.

    The link is:

    http://lancelawmass.com/category/blog-criminal-defense/

    # February 11, 2013 at 3:31 pm

    @EJDooley, nothing’s there…looks like an empty `

      ` tag, check your widgets in the dashboard and make sure you didn’t delete anything there.
    # February 11, 2013 at 3:33 pm

    There is no content.

    My guess is that area is not being populated by the PHP.

    Did you change an essential ID or class name on your HTML/CSS?

    # February 11, 2013 at 3:42 pm

    I don’t believe so. The two pages that were edited were on the Header and PageTemplate CSS files, both of which were restored to originals. I’m unsure of where the other edits may have been made. The “Blog page template” CSS code is below, but at first glance I do not see an issue (though my CSS experience is limited).

    get_header(); ?>

    < ?php include_once(TEMPLATEPATH . '/title.php'); ?>

    < ?php
    if(!is_front_page()){
    include_once (TEMPLATEPATH . ‘/title.php’);
    }
    ?>

    < ?php if ( function_exists('yoast_breadcrumb')) {
    yoast_breadcrumb(‘

    ‘);
    }
    ?>

    < ?php $values = get_post_custom_values("category-include"); $cat=$values[0]; ?>
    < ?php global $more; $more = 0;?>
    < ?php $strinclude = $cat;?>
    < ?php $catinclude = 'category_name=' . $strinclude ;?>
    < ?php query_posts('&' . $catinclude .' &paged='.$paged); ?>
    < ?php
    /* Since we called the_post() above, we need to
    * rewind the loop back to the beginning that way
    * we can run the loop properly, in full.
    */
    rewind_posts();

    /* Run the loop for the archives page to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-archives.php and that will be used instead.
    */
    get_template_part( ‘loop’, ‘archive’ );
    ?>
    < ?php wp_reset_query();?>

    < ?php get_sidebar(); ?>

    < ?php get_footer(); ?>

    # February 11, 2013 at 3:43 pm

    *edit*

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".