I need to rearrange how my comments are displayed depending on the page template.
My posts and standard pages are displayed in in the middle of the screen, and thus need to share the same comment layout. I then have a right sidebar page layout and so I need the comments pages with that template to be aligned to the left of the page. I am attempting to this like so
<?php if( is_single() || is_page()): ?> <div class="col-lg-12"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <?php else: ?> <?php if(is_page_template('right-sidebar.php')) ?> <div class="col-lg-12"> <div class="row"> <div class="col-lg-7 col-md-12"> <?php endif; ?>
However, my single stadard pages are taking the layout of the
html under the second if condition.
What am I misunderstanding about this?