Edited sidebar.php

added is_post_type_archive to if statements