WordPress WordPress Theme Development Finishing Your WordPress Theme Adding Widget Areas to a WordPress Theme

shareyourpeace
shareyourpeace
3,244 Points

My Sidebar Does show up on my Blog page but Not on my when I click uncategorized - Archives.

http://imgur.com/KKObaCW

The screenshot is 2 windows in ChromeDevTools.

  1. top. magnifying class selected 'sidebar'
  2. bottom. magnifying class selected 'uncategorized' Maybe this helps identify what I missed in my coding. thanks

sidebar.php

<!-- Secondary Column -->
<div class="small-12 medium-4 medium-pull-8 columns">
<div class="secondary">
        <h2 class="module-heading">Sidebar Setup</h2>
                <h2>is this showing up in the sidebar ? </h2>

</div>
</div>

same as page-sidebar-left.php

<!-- Secondary Column -->
          <div class="small-12 medium-4 medium-pull-8 columns">
            <div class="secondary">    
                <h2 class="module-heading">Sidebar</h2>
            </div>
          </div>

home.php (blog)

          <!-- Secondary Column -->
          <div class="small-12 medium-4 medium-pull-8 columns">
            <div class="secondary">    
                <h2 class="module-heading">Sidebar</h2>
            </div>
          </div>

archives.php

<?php get_sidebar(); ?>

What am I missing ?

1 Answer

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi,

Both of the links in the URL seem to point to /blog. Can you post the full code from your home.php page and your archives.php.

Thanks!