Sidebar is pushed down on custom post type single post page (custom theme)
-
A while ago I changed the content within a few of my Theme’s files. I created new files such as loop.php, loop-single.php, single-events.php and quite a few format-{post-format}.php files.
I recently created a Custom post type named Events and
everything was working smoothly until I attempted to fix up the single post page to the Events post type. The sidebar now gets pushed down. I’ve done a tad bit of research and the results were to check the HTML Validation ect, there were no end tags missing or anything for this to be happening. I strongly believe it has something to do with my loop-single, loop, or single-events.php files.I just need help adding or removing whatever code necessary to get the sidebar back up in it’s correct position on this specific custom post type.
I’ve pasted the files I feel are most important inside of these pastebins//
First off here is my new index.php//
https://pastebin.com/Bsz2vfrvloop.php//
<?php while ( have_posts() ) : the_post(); $format = get_post_format(); if (! $format ) $format = 'standard'; get_template_part('format', $format); endwhile; ?>
loop-single.php//
<?php get_template_part('format', $format); ?>
single.php (if needed)//
https://pastebin.com/gFRix2xgsingle-events.php// https://pastebin.com/BFQGZpAA
Appreciate the help.
- The topic ‘Sidebar is pushed down on custom post type single post page (custom theme)’ is closed to new replies.