When inserting post_class into single.php, sidebar gets shifted
-
After just figuring how to style posts from a specific category using post_class I inserted the following code into my single.php file
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
I then added .category-blog to my CSS which allowed me to independently style all posts with the category “blog”.
However wherever I seem to insert
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
into single.php, the sidebar of the site gets shifted to the bottom of the page when looking any single post. Does anyone have any ideas?Here is the link to the code for single.php currently
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘When inserting post_class into single.php, sidebar gets shifted’ is closed to new replies.