Quantcast
Channel: bbPress.org » All Posts
Viewing all articles
Browse latest Browse all 3669

Reply To: Sidebar reappear in topic and topic/

$
0
0

ok, this theme has annoyed me so much that I have down loaded it.

I then saw that it claims to be a bbpress friendly theme, aghh!!! why not include a fullwidth forum????

so had a little play

on my test site the following works

bbpress.php looks like

<?php get_header(); // Loads the header.php template. ?>
 
<main>
 
	<?php if ( have_posts() ) : // Checks if any posts were found. ?>
	
	  
 
		<?php while ( have_posts() ) : // Begins the loop through found posts. ?>
 
			<?php the_post(); // Loads the post data. ?>
 
			<article <?php hybrid_attr( 'post' ); ?>>
 
				<?php if ( is_singular( get_post_type() ) ) : // If viewing a single page. ?>
 
					<header class="entry-header">
						<h1 <?php hybrid_attr( 'entry-title' ); ?>><?php single_post_title(); ?></h1>
					</header><!-- .entry-header -->
 
					<div <?php hybrid_attr( 'entry-content' ); ?>>
						<?php the_content(); ?>
						<?php wp_link_pages(); ?>
					</div><!-- .entry-content -->
 
				<?php else : // If not viewing a single page. ?>
 
					<header class="entry-header">
						<?php the_title( '<h2 ' . hybrid_get_attr( 'entry-title' ) . '><a href="' . get_permalink() . '" rel="bookmark" itemprop="url">', '</a></h2>' ); ?>
					</header><!-- .entry-header -->
 
					<div <?php hybrid_attr( 'entry-content' ); ?>>
						<?php the_content(); ?>
						<?php wp_link_pages(); ?>
					</div><!-- .entry-content -->
 
				<?php endif; // End single page check. ?>
 
			</article><!-- .entry -->
 
		<?php endwhile; // End found posts loop. ?>
 
	<?php else : // If no posts were found. ?>
 
		<?php locate_template( array( 'content/error.php' ), true ); // Loads the content/error.php template. ?>
 
	<?php endif; // End check for posts. ?>
 
</main><!-- #content -->
 

		<footer <?php hybrid_attr( 'footer' ); ?>>

			<div class="wrap">

				<?php hybrid_get_menu( 'social' ); // Loads the menu/social.php template. ?>

				<p class="credit">
					<?php printf(
						/* Translators: 1 is current year, 2 is site name/link, 3 is WordPress name/link, and 4 is theme name/link. */
						__( 'Copyright © %1$s %2$s. Powered by %3$s and %4$s.', 'stargazer' ), 
						date_i18n( 'Y' ), hybrid_get_site_link(), hybrid_get_wp_link(), hybrid_get_theme_link()
					); ?>
				</p><!-- .credit -->

			</div><!-- .wrap -->

		</footer><!-- #footer -->

	</div><!-- #container -->

	<?php wp_footer(); // WordPress hook for loading JavaScript, toolbar, and other things in the footer. ?>

</body>
</html>

Viewing all articles
Browse latest Browse all 3669

Trending Articles